An easy way to edit the Xfce Application Menu

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:

# equo install lxmed

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:

$ su
# lxmed

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.

About Fitzcarraldo
A Linux user with an interest in all things technical.

2 Responses to An easy way to edit the Xfce Application Menu

  1. Tyger says:

    Thanks! New to Sabayon and this was a lot easier than the lengthy wiki instructions for Xfce.

  2. Ander says:

    Unfortunately, it doesn’t let you create or remove menu categories, just the launchers they contain.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: