Posts: 84
nujinini
Joined: 05 Jun 2010
#16
rokytnji wrote:Cave man instructions for nujinini from Neanderthal Biker. __{{emoticon}}__

No need to be root. Can edit with Leafpad or Geany also if you want to.

Does your friends .icewm folder look like this inside?

screenshotice-thumb.jpg

Right click on icemenuyap2.py (if it is there) and open with leafpad or geany (choice is yours). Proceed with your edit.

Happy trails, Rok
Hi Rok.

I edited the file by removing the"bold italics line" below but still nothing appears on the applications menu. I also tried to do"updatedb" and still nothing asppears __{{emoticon}}__

Code: Select all

#!/usr/bin/python
# -*- coding: utf-8 -*-
#
#    Build icewm menu from .desktop files in /usr/share/applications
#
#    Usage:   python icemenuyap2.py > icemenu.txt
#                or add to icewm startup file:
#                   python ~/.icewm/icemenuyap2.py > ~/.icewm/application &
#                and to icewm menu file:
#                   menufile"Application""folder" ~/.icewm/application
#
#    Copyright (C) 2009  Federico Pelloni <federico.pelloni@gmail.com>
#                               Lion1810 <lion1810@inwind.it>
#    Based on icemenuyap.py by btekbas@gmail.com - which was based
#    on gnome2fluxmenu 
#
#    This program is free software: you can redistribute it and/or modify
#    it under the terms of the GNU General Public License as published by
#    the Free Software Foundation, either version 3 of the License, or
#
#    This program is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License for more details.
#
#    You should have received a copy of the GNU General Public License
#    along with this program.  If not, see <http://www.gnu.org/licenses/>.
#
import gconf,os,sys,random,mimetypes,glob
[b][i]gnmp_st="/usr/share/applications"[/i][/b]
catacce_sl=[]
catutil_sl=[]
catgame_sl=[]
catgrap_sl=[]
catnetw_sl=[]
           [ line 22/134 (16%), col 1
Sorry for my late reply. I only come to their office once a week.

Thanks __{{emoticon}}__
anticapitalista
Posts: 5,955
Site Admin
Joined: 11 Sep 2007
#17
import gconf,os,sys,random,mimetypes,glob
gnmp_st="/usr/share/applications" ie no
should read

import os,sys,random,mimetypes,glob
gnmp_st="/usr/share/applications"
Posts: 84
nujinini
Joined: 05 Jun 2010
#18
Hello anti.. __{{emoticon}}__

I changed

Code: Select all

import gconf,os,sys,random,mimetypes,glob
gnmp_st="/usr/share/applications" 
to

Code: Select all

import os,sys,random,mimetypes,glob
gnmp_st="/usr/share/applications"
Nothing still appears on the applications... __{{emoticon}}__

May I please ask for any other suggestions? __{{emoticon}}__

Thanks!
anticapitalista
Posts: 5,955
Site Admin
Joined: 11 Sep 2007
#19
Did you then do the update again and from the menu, logout, Restsrt icewm?
Posts: 84
nujinini
Joined: 05 Jun 2010
#20
anticapitalista wrote:Did you then do the update again and from the menu, logout, Restsrt icewm?
Good day anti,

Yes I did but when I checked, the list of applications does not still show up in menu. Do you think I did something wrong during installation or is this hardware related? Would you recommend a fresh reinstall?

By the way, my friends are very happy with the 8.5 I installed. It's only this particular issue that's quite stubborn as far as their old PC is concerned.
anticapitalista
Posts: 5,955
Site Admin
Joined: 11 Sep 2007
#21
nujinini, if you are still around I think I know the problem and hence the solution.

The problem is that the 'apllications script' is looking for an icon reference in the /usr/share/applications/foo.desktop file(s).
If one doesn't exist, the applications file in icewm doesn't get created.

Solution: Find out which .desktop file in /usr/share/applications doesn't have a reference to icon and add this line. (no need for an actual icon), as root.

Icon=

Then logout/login.