An easy way to edit the Xfce Application Menu
December 5, 2012 1 Comment
I recently installed Sabayon Linux with Xfce 4.10 on a couple of laptops. Being a long-time KDE user, I was surprised to find that Xfce does not provide a ‘native’ easy way to edit the Xfce Application Menu. The Xfce Wiki page (Customize the Xfce menu) lists a protracted and complicated procedure for making changes to the Xfce menu files. Fortunately the article also points out that a LXDE tool works for Xfce too:
A GNU-licensed graphical menu editor for LXDE, LXMenuEditor, also works for XFCE, as of XFCE 4.8.0 and LXMenuEditor 20110523.
So I installed LXMenuEditor:
To run LXMenuEditor from the command line you just need to enter the command
lxmed. If you do that from your user account you can only use LXMenuEditor to view the menu entries. To be able to edit, add and delete menu entries you must launch lxmed as root user, which of course you can do from the command line too. But I wanted to add LXMenuEditor to the Xfce Application Menu and also make it prompt for the root user’s password when launched from the menu. So I did the following:
1. Open a Terminal window, login as root user and launch LXMenuEditor:
2. Click on the ‘System Tools’ entry in the Categories pane. The Menu Items pane will display the current menu entries in the System Tools category.
3. Click on the ‘New Item’ button and a window will pop up.
4. In the Name box enter “Application Menu Editor” (without the quotes).
5. In the Command box enter “gksu lxmed” (without the quotes).
6. In the Comment box enter “Edit entries in the Xfce Application Menu” (without the quotes).
7. Make sure the Visible tick box is ticked.
8. Click the OK button.
x11-libs/gksu should already be installed, but install it if it is not.)
That’s it. If you click on ‘Applications Menu’ on the Panel there will now be a menu entry System > Applications Menu Editor and, if you click on that, you will be prompted to enter the root user’s password. Once you have done that, LXMenuEditor will be launched with root user previleges and you can view and edit the Xfce applications menu.