topic title: error icewm menu
Posts: 142
0day
Joined: 10 Aug 2013
#1
i removed any icewm folder in antix 16 base,I do not remember which folders and files I have to delete to not have this error. on another computer I had resolved :

Code: Select all

$ sudo apt-get install xpdf
[sudo] password for kevin: 
Lettura elenco dei pacchetti... Fatto
Generazione albero delle dipendenze       
Lettura informazioni sullo stato... Fatto
I seguenti pacchetti saranno inoltre installati:
  libmotif-common libpoppler46 libxm4
Pacchetti raccomandati:
  poppler-data poppler-utils gsfonts-x11 cups-bsd
I seguenti pacchetti NUOVI saranno installati:
  libmotif-common libpoppler46 libxm4 xpdf
0 aggiornati, 4 installati, 0 da rimuovere e 0 non aggiornati.
È necessario scaricare 2.523 kB di archivi.
Dopo quest'operazione, verranno occupati 6.732 kB di spazio su disco.
Continuare? [S/n] s
Scaricamento di:1 http://ftp.it.debian.org/debian/ jessie/main libmotif-common all 2.3.4-6+deb8u1 [28,1 kB]
Scaricamento di:2 http://ftp.it.debian.org/debian/ jessie/main libpoppler46 i386 0.26.5-2+deb8u1 [1.240 kB]
Scaricamento di:3 http://ftp.it.debian.org/debian/ jessie/main libxm4 i386 2.3.4-6+deb8u1 [1.098 kB]
Scaricamento di:4 http://ftp.it.debian.org/debian/ jessie/main xpdf i386 3.03-17+b1 [157 kB]
Recuperati 2.523 kB in 5s (497 kB/s)
Selezionato il pacchetto libmotif-common non precedentemente selezionato.
(Lettura del database... 92678 file e directory attualmente installati.)
Preparativi per estrarre .../libmotif-common_2.3.4-6+deb8u1_all.deb...
Estrazione di libmotif-common (2.3.4-6+deb8u1)...
Selezionato il pacchetto libpoppler46:i386 non precedentemente selezionato.
Preparativi per estrarre .../libpoppler46_0.26.5-2+deb8u1_i386.deb...
Estrazione di libpoppler46:i386 (0.26.5-2+deb8u1)...
Selezionato il pacchetto libxm4:i386 non precedentemente selezionato.
Preparativi per estrarre .../libxm4_2.3.4-6+deb8u1_i386.deb...
Estrazione di libxm4:i386 (2.3.4-6+deb8u1)...
Selezionato il pacchetto xpdf non precedentemente selezionato.
Preparativi per estrarre .../xpdf_3.03-17+b1_i386.deb...
Estrazione di xpdf (3.03-17+b1)...
Elaborazione dei trigger per mime-support (3.58)...
Elaborazione dei trigger per man-db (2.7.0.2-5)...
Elaborazione dei trigger per menu (2.1.47)...
Configurazione di libmotif-common (2.3.4-6+deb8u1)...
Configurazione di libpoppler46:i386 (0.26.5-2+deb8u1)...
Configurazione di libxm4:i386 (2.3.4-6+deb8u1)...
Configurazione di xpdf (3.03-17+b1)...
Elaborazione dei trigger per libc-bin (2.19-18+deb8u4)...
Elaborazione dei trigger per menu (2.1.47)...
Writing Menu: icewm
Traceback (most recent call last):
  File"/usr/local/bin/desktop-menu", line 295, in <module>
    build_menu()
  File"/usr/local/bin/desktop-menu", line 267, in build_menu
    open((USER_HOME+"/"+Var.Conf_Dir+"/"+Var.App_File), 'w').close()  
IOError: [Errno 2] File o directory non esistente: '/usr/share/desktop-menu//.icewm/menu-applications'
E: Problem executing scripts DPkg::Post-Invoke '/usr/local/lib/desktop-menu/desktop-menu-apt-update check'
E: Sub-process returned an error code
kevin@antiX:~
Posts: 850
fatmac
Joined: 26 Jul 2012
#2
Looks to me like the script was looking for your .icewm/menu-applications file. __{{emoticon}}__
Posts: 142
0day
Joined: 10 Aug 2013
#3
path? i've not icewm installed
Posts: 850
fatmac
Joined: 26 Jul 2012
#4
I've just done a simulated install of xpdf on a '16 base' system, & I did not get what you are seeing.

So, I actually installed it, & still got no errors.

EDIT: Are you sure that this is a 'base' & not a 'full' installation?

Edit2: Fluxbox & JWM are the main WM's in a 'base' install.
Posts: 142
0day
Joined: 10 Aug 2013
#5
in antix 16 base there is a bug in update menu for icewm. icewm is not installed
Posts: 850
fatmac
Joined: 26 Jul 2012
#6
I suggest that you update your system, & then try again. __{{emoticon}}__
Posts: 2,238
dolphin_oracle
Joined: 16 Dec 2007
#7
0day wrote:in antix 16 base there is a bug in update menu for icewm. icewm is not installed

I bet you can copy over the .icewm folder from / etc/skel into your home folder to resolve the issue until desktop-menu is updated to deal with it.
Posts: 142
0day
Joined: 10 Aug 2013
#8
.icewm folder there is not
Posts: 142
0day
Joined: 10 Aug 2013
#9
i removed:
/usr/share/desktop-session/wm-menus/icewm-wm-menu
Posts: 850
fatmac
Joined: 26 Jul 2012
#10
0day wrote:i removed:
/usr/share/desktop-session/wm-menus/icewm-wm-menu
You definately sound like you have AntiX 'full' installed - you should not just delete folders from your system. __{{emoticon}}__

To remove applications you should use apt-get purge.
Posts: 2,238
dolphin_oracle
Joined: 16 Dec 2007
#11
That folder is part of desktop-session not icewm. So that is the issue.

In general it's not wise to delete files in System folders. Uninstalling packages is safer.
Posts: 1,445
skidoo
Joined: 09 Feb 2012
#12

Code: Select all

File"/usr/local/bin/desktop-menu", line 267, in build_menu
    open((USER_HOME+"/"+Var.Conf_Dir+"/"+Var.App_File), 'w').close() 
IOError: [Errno 2] File o directory non esistente: '/usr/share/desktop-menu//.icewm/menu-applications'
@0day:
Try renaming /usr/share/desktop-menu/templates/icewm.template to /usr/share/desktop-menu/templates/icewm.bogus
then check whether sudo apt-get install xpdf ( and/or other apt install, apt remove operations ) now completes successfully.
Note: this should not be expected to provide a PERMANENT fix.
If you ever upgrade the"desktop-session-antix" package, it will re-inject an icewm.template file and the error you're now seeing would return.

========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"https://github.com/antiX-Linux/desktop-session-antix/tree/0c7d35f0ff68653cdc1955971f44836039b82040/templates"
linktext was:"https://github.com/antiX-Linux/desktop- ... /templates"
====================================



@dolphin_oracle
check my math:
...aptconf.d/99-update-menus
^---v
desktop-menu-apt-update --write-out-global
^---v
/usr/local/bin/desktop-menu --write-out-global

========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"https://github.com/antiX-Linux/desktop-session-antix/blob/0c7d35f0ff68653cdc1955971f44836039b82040/bin/desktop-menu"
linktext was:"https://github.com/antiX-Linux/desktop- ... sktop-menu"
====================================

@line290,
for i in os.listdir('/usr/share/desktop-menu/templates'): if i.endswith(".template"):
Posts: 1,445
skidoo
Joined: 09 Feb 2012
#13
until desktop-menu is updated to deal with it.
If"base" isn't shipping icewm, perhaps a /Build-iso/Template/base/delete-files.list should exist
ala
========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"https://github.com/antiX-Linux/Build-iso/blob/master/Template/COMMON/delete-files.list"
linktext was:"https://github.com/antiX-Linux/Build-is ... files.list"
====================================

specifying /usr/share/desktop-menu/templates/icewm.template as a to-be-deleted item.