Ebuild for smeg, the simple menu editor for gnome Homepage: http://www.realistanew.com/projects/smeg/ Reproducible: Always Steps to Reproduce: 1. 2. 3.
Created attachment 58045 [details] Smeg 0.5 ebuild
Created attachment 59595 [details] smeg-0.5.ebuild Use distutils.eclass. Suggest gnome-extra/smeg.
smeg-0.6.2 released - copying the ebuild does not work. --> needs gnome-python as dep (I chose >=2.6.1 as that's what I have installed) (as seen in the forums) --> patch fails --> does not run! :-( I have no clue of python (C/C++/Java only :-/) so maybe someone else can take on it! Running smeg gives: ----- $ smeg Traceback (most recent call last): File "/usr/bin/smeg", line 399, in on_menus_cursor_changed self.getEntries(model.get_value(iter, 3)) File "/usr/bin/smeg", line 260, in getEntries entries.sort(cmp=lambda x,y: cmp(x.DesktopEntry.getName(), y.DesktopEntry.getName())) ----- Maybe the patch needs to be redone? Sorry I can't help with python ... Florian
Created attachment 59895 [details] smeg-0.6.2 ebuild
Hmm, if I try to start smeg there is a error: self.tree = gtk.glade.XML(os.path.join(libdir, 'smeg.glade')) Traceback (most recent call last): File "/usr/bin/smeg", line 481, in ? smeg.run() File "/usr/bin/smeg", line 476, in run self.getMenus() File "/usr/lib/smeg/MenuHandler.py", line 181, in loadMenus menu = xdg.Menu.parse() File "/usr/lib/python2.4/site-packages/xdg/Menu.py", line 557, in parse __parse(doc, filename, tmp["Root"]) File "/usr/lib/python2.4/site-packages/xdg/Menu.py", line 578, in __parse __parseMenu(child, filename, parent) File "/usr/lib/python2.4/site-packages/xdg/Menu.py", line 712, in __parseMenu __parse(child, filename, m) File "/usr/lib/python2.4/site-packages/xdg/Menu.py", line 618, in __parse raise ValidationError('MergeFile cannot be empty', filename) xdg.Exceptions.ValidationError: ValidationError in file '/home/tim/.config/menus/applications.menu': MergeFile cannot be empty
Created attachment 59942 [details] smeg-0.6.2 ebuild updated DEPEND; added >=dev-lang/python-2.4 since it's needed (smeg fails to read the applications-list of a given menu-entry with python-2.3).
(In reply to comment #5) > Hmm, if I try to start smeg there is a error: > xdg.Exceptions.ValidationError: ValidationError in file > '/home/tim/.config/menus/applications.menu': MergeFile cannot be empty Something's not right with your $HOME/.config/menus/applications.menu file! Try moving it. regards, Florian
I tried, but it will be recreated with the same content as before and the same error.
(In reply to comment #5) > Hmm, if I try to start smeg there is a error: > > self.tree = gtk.glade.XML(os.path.join(libdir, 'smeg.glade')) > Traceback (most recent call last): > File "/usr/bin/smeg", line 481, in ? > smeg.run() > File "/usr/bin/smeg", line 476, in run > self.getMenus() > File "/usr/lib/smeg/MenuHandler.py", line 181, in loadMenus > menu = xdg.Menu.parse() > File "/usr/lib/python2.4/site-packages/xdg/Menu.py", line 557, in parse > __parse(doc, filename, tmp["Root"]) > File "/usr/lib/python2.4/site-packages/xdg/Menu.py", line 578, in __parse > __parseMenu(child, filename, parent) > File "/usr/lib/python2.4/site-packages/xdg/Menu.py", line 712, in __parseMenu > __parse(child, filename, m) > File "/usr/lib/python2.4/site-packages/xdg/Menu.py", line 618, in __parse > raise ValidationError('MergeFile cannot be empty', filename) > xdg.Exceptions.ValidationError: ValidationError in file > '/home/tim/.config/menus/applications.menu': MergeFile cannot be empty I get this error if I start as root. Perhaps that's the problem?
Guys, I just installed smeg from the webpage but my Gnome 2.10 menu is now empty.... Perhaps this is a problem? How do I go about fixing this?
I get the error always, not only as user but with all users and root...
smeg-0.7 now in portage, masked though since it python-2.4 and gnome-menus-2.10.1 are masked. gnome-menus-2.10.1 fixes the empty menu problem the ValidationError might be fixed as well, but is a problem in pyxdg otherwise
Well, the error remained. I removed the file and now I get this error message: /usr/bin/smeg:48: GtkWarning: Theme directory scalable/emblems of theme Flat-Blue has no size field self.tree = gtk.glade.XML(os.path.join(libdir, 'smeg.glade')) Traceback (most recent call last): File "/usr/bin/smeg", line 549, in ? main() File "/usr/bin/smeg", line 545, in main smeg = Smeg() File "/usr/bin/smeg", line 52, in __init__ self.handler = MenuHandler(self, self.config) File "/usr/lib/smeg/MenuHandler.py", line 47, in __init__ xdg.MenuEditor.MenuEditor.__init__(self) File "/usr/lib/python2.4/site-packages/xdg/MenuEditor.py", line 25, in __init__ self.parse(menu, filename) File "/usr/lib/python2.4/site-packages/xdg/MenuEditor.py", line 36, in parse self.menu = parse() File "/usr/lib/python2.4/site-packages/xdg/Menu.py", line 503, in parse __parse(doc, filename, tmp["Root"]) File "/usr/lib/python2.4/site-packages/xdg/Menu.py", line 524, in __parse __parseMenu(child, filename, parent) File "/usr/lib/python2.4/site-packages/xdg/Menu.py", line 682, in __parseMenu __parse(child, filename, m) File "/usr/lib/python2.4/site-packages/xdg/Menu.py", line 588, in __parse __parseKDELegacyDirs(filename, parent) File "/usr/lib/python2.4/site-packages/xdg/Menu.py", line 817, in __parseKDELegacyDirs for dir in output[0].split(":"): IndexError: list index out of range
Aside from what emerge drew in, I also had to emerge dev-python/pygtk before smeg worked (gave an error about failure to load pygtk or something). Right now I have it working pretty well with the following: -> x11-misc/smeg-0.7.5 -> dev-python/pyxdg-0.14 -> gnome-base/gnome-menus-2.10.1 -> dev-lang/python-2.4.1 -> dev-python/pygtk-2.6.1 Using gnome 2.10-r1. Fwiw the first time I used it, it blanked my menu leaving only the Actions stuff, but a quick killall gnome-panel fixed it.