Wednesday, May 8, 2013

Fixing menu editing in XFCE on Fedora 18

Having recently switched to Fedora on one of my machines, I installed the XFCE remix. It works wonderful with Compiz and restores Linux desktop to its proper traditional glory :-)

However, the 'Edit Main Menu' functionality is broken, since it relies on a GNOME package that is not installed by default. If you press on 'Add New Item' in the menu editor nothing happens...but this error shows up in the logs

  File "/usr/lib/python2.7/site-packages/Alacarte/MainWindow.py", line 276, in on_new_item_button_clicked
    process = subprocess.Popen(['gnome-desktop-item-edit', file_path], env=os.environ)
  File "/usr/lib64/python2.7/subprocess.py", line 679, in __init__
    errread, errwrite)
  File "/usr/lib64/python2.7/subprocess.py", line 1249, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory
All you have to do is to symlink the missing GNOME app to its XFCE equivalent and everything works again
cd /usr/bin
sudo ln -s exo-desktop-item-edit gnome-desktop-item-edit
And everything works again. Alacarte will now open the XFCE menu editor for menu items.

I can add my favorite IDE directly into main menu again :-)


No comments:

Post a Comment