Edit menu in Gnome - Alacarte does not start

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

Edit menu in Gnome - Alacarte does not start

Postby tleedavidson » Sep 4th, '12, 23:51

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.
Lee
tleedavidson
 
Posts: 54
Joined: Feb 14th, '12, 04:36

Re: Edit menu in Gnome - Alacarte does not start

Postby David_Batson » Sep 5th, '12, 08:59

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.
David_Batson
 
Posts: 128
Joined: May 1st, '11, 05:19

Re: Edit menu in Gnome - Alacarte does not start

Postby tleedavidson » Sep 5th, '12, 11:51

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.
Lee
tleedavidson
 
Posts: 54
Joined: Feb 14th, '12, 04:36

Re: Edit menu in Gnome - Alacarte does not start

Postby the_loko » Sep 5th, '12, 19:01

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. :)
User avatar
the_loko
 
Posts: 17
Joined: Jun 20th, '12, 11:36
Location: Sevilla, Spain

Re: Edit menu in Gnome - Alacarte does not start

Postby drichard58 » Nov 9th, '12, 15:29

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?
drichard58
 
Posts: 42
Joined: May 26th, '12, 04:09

Re: Edit menu in Gnome - Alacarte does not start

Postby tleedavidson » Nov 9th, '12, 17:21

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.
Lee
tleedavidson
 
Posts: 54
Joined: Feb 14th, '12, 04:36


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest

cron