Friday, September 22, 2006

Xubuntu : XFCE Menu Items

If you're using Xubuntu and are trying to add menu items to categories such as Games or Network you've probably noticed the XFCE Menu editor is of no use.

Here is the fix :

Xubuntu system menu items are controlled via files in the following directory :

/usr/share/applications

This directory contains a lot of files that end in .desktop

These are the files that control what menu items appear in certain categories.
  1. Open the .desktop file of the menu item you want to add to a catagory ( file A )
  2. Open the .desktop file of a menu item already in that category ( file B )
  3. Replace the "Categories=" line in file A with the one from file B.

You may have to restart XFCE for the changes to show up or perform some action that requires the menu file to be reloaded ( like check the check "hidden" for something in the menu editor then hit save ).

If there is no .desktop file for the program you want to add then create a new file (make sure it ends in .desktop) and copy the contents from a file in that catagory into your new file.

Then change all the important details and everything should work.

* Note

To open the .desktop file as root go to a root terminal and inside the
/usr/share/applications directory and execute :

"mousepad filename.desktop"

Or from the regular terminal inside the
/usr/share/applications directory execute

"sudo mousepad filename.desktop"

Technorati Tags
[ Xubuntu ]
[ XFCE ]
[ XFCE Menu ]
[ Xubuntu XFCE Menu ]

4 comments:

Sefa Denizoglu said...

Good tip above, thanks. I've looked for a solution to my problem, which is, xfce menu didn't realize those .desktop files after the fresh xubuntu 8.04 install, alas, no luck up to now. I don't want to add all programs on my distro manually to xfce menu, is there a short way of doing that? Actually since my installation is fresh, someone can share his/her xfce menu file with me as well!?

Anonymous said...

http://xfce.wikia.com/wiki/Frequently_Asked_Questions#How_to_edit_the_auto_generated_menu_with_the_menu_editor.3F

Anonymous said...

Just to add to this, I found that changes wouldn't occur in the menu until I duplicated the .desktop file. After that the duplicate can be deleted:

$ sudo cp appname.desktop tmp.desktop
$ sudo rm tmp.desktop

That was the only way I could get the changes to show up in the menu.

Cheers

oct809 said...

Thank for your post,I will try.
louis vuitton outlet
louis vuitton handbags
cheap louis vuitton handbags
Beats By Dre Solo
Beats By Dre Solo Hd
Monster Beats Mlb
cheap beats by dre
monster headphones
monster beats headphones

//]]>