Page 1 of 1

Edit menu in Gnome - Alacarte does not start

PostPosted: Sep 4th, '12, 23:51
by tleedavidson
I searched the board and found this thread, Gnome Menu Editor problem - Alacarte does not start, but it doesn't help fix my very related problem.

Running Alacarte (/usr/bin/alacarte) from a terminal yields:
Code: Select all
** (process:3060): WARNING **: Trying to register gtype 'GMountMountFlags' as enum when in fact it is of type 'GFlags'

** (process:3060): WARNING **: Trying to register gtype 'GDriveStartFlags' as enum when in fact it is of type 'GFlags'

** (process:3060): WARNING **: Trying to register gtype 'GSocketMsgFlags' as enum when in fact it is of type 'GFlags'
Traceback (most recent call last):
  File "/usr/bin/alacarte", line 22, in <module>
    from Alacarte.MainWindow import MainWindow
  File "/usr/lib/python2.7/site-packages/Alacarte/MainWindow.py", line 19, in <module>
    import gtk, gmenu, gobject, gio
ImportError: No module named gmenu


Software Management shows that libgmenu-gir3.0 v3.4.0 is installed. I found no other 'gmenu' listing.

How do I get the 'gmenu' module installed?

And I don't know if this is related, but the above referenced thread mentioned:
An alternative route is from the main menu, System->Preferences->Main Menu.

But there is no "System" item in my main (Applications) menu. What might I be missing there?

Thank you for any help you can give.

Terry

Edit: Oops, sorry. I'm on Mageia 2.

Re: Edit menu in Gnome - Alacarte does not start

PostPosted: Sep 5th, '12, 08:59
by David_Batson
There was a guide on Fedora Forum that gave links to a couple of files you need.
http://forums.fedoraforum.org/showthread.php?t=275260

Unfortunately, the website that hosted the files is no longer available. I imagine though that you could get the files from one of the mirrors of Mageia or Fedora. You can use rpm2cpio to extract individual files from a rpm and then copy them to the folder they need to be in. I have done this before to get my Canon Printer drivers working.

It is possible that there is a bug report on this, or you could submit one and hope for a solution that way.

Re: Edit menu in Gnome - Alacarte does not start

PostPosted: Sep 5th, '12, 11:51
by tleedavidson
Thank you for pointing me in the right direction, David.

There actually is a bug report on this (alacarte won't run: No module named gmenu) that I missed in my previous research because I was looking specifically for python modules.

At Comment 14 of that bug report, Alberto Girlando gives a link to a work-around based on Fedora 15 files:
MacLochlainns Weblog : Gnome Menu Editing Fix

I tried that fix, but now the error given when running Alacarte in a terminal is simply different; ending with:
Code: Select all
  File "/usr/lib/python2.7/posixpath.py", line 66, in join
    if b.startswith('/'):
AttributeError: 'NoneType' object has no attribute 'startswith'

And, unfortunately, neither of the gnome-menu packages in the Mageia 1 or the Mageia Cauldron repositories give me the files I apparently need.

Oh well, I guess I'll just have to wait for Mageia 3 to see if I'll be able to get away from KDE's required-services bloat.

Thanks again.

Re: Edit menu in Gnome - Alacarte does not start

PostPosted: Sep 5th, '12, 19:01
by the_loko
It's a bug. Right now, alacarte doesn't work in any rpm distro.

Meanwhile, I edit the menu in /usr/share/applications. Look any shortcut to copy the template, and you can make new ones. :)

Re: Edit menu in Gnome - Alacarte does not start

PostPosted: Nov 9th, '12, 15:29
by drichard58
Has there been any progress with a solution to this? I have the TOOLS>MAIN MENU option in my menu, but selecting it doesn't do anything. And isn't there usually an option for this in the Mageia Control Center?

Re: Edit menu in Gnome - Alacarte does not start

PostPosted: Nov 9th, '12, 17:21
by tleedavidson
Take a look at the bug report for this issue: Bug 2911 - alacarte won't run: No module named gmenu.

The latest comment, (currently #22) dated Nov. 5, gives a solution that is said to work "like a charm." I haven't tried it, though, as this issue is not currently a priority to me.