Howto: Remove menu entries from the System menu

August 4, 2006 at 10:05 am | In tips and tricks, xubuntu |

With the built-in menu editor, you cannot remove menu entries from the System menu. Here’s how:

1) Go to the /usr/share/applications folder. Copy and paste in the terminal (Xfce menu > System > Terminal):

cd /usr/share/applications

2) This folder should be full of .desktop files. To see how many there are, type

ls

Say the one you want to edit is Firefox. Copy and paste into the terminal:

sudo mousepad firefox.desktop

3) In the bottom of the file, paste the following:

NoDisplay=true

Save and exit. Now Firefox won’t show up in the System menu. You can do this with any program.

14 Comments »

RSS feed for comments on this post. TrackBack URI

  1. Thanks for the hint. But what do you do with menu entries which do not show up in /usr/share/applications (e.g., apps installed via wine)? Any idea?

    Comment by TomS — December 16, 2006 #

  2. To create an entry, use another .desktop as a template and modify it with the correct name and path for the program you want to run, then save it as “new_program_name.desktop” (where new_program_name is the program you wanted in your menu).

    Comment by dacovale — December 23, 2006 #

  3. extra tip: not all .desktop files are under /usr/share/applications.

    do ” locate *.desktop” to find them all

    i wanted to remove some “Root Shell” icon, and it was found in /home/rob/.kde/share/apps/konsole/su.desktop :)

    Comment by rob — January 2, 2007 #

  4. Heya, had some real issues trying to find azureus, i added using alacarte, but then it jsut disapeared but stayed in sys menu, turns out it went to .local/share/applications/Azureus.desktop , was case sensitive, so i didn’t find it for a while -_-”

    Comment by Noirenex — February 16, 2007 #

  5. Hi, the menu entries are located in .desktop file.
    After installing a bunch of program using wine, I found out that after install them, they were still in the menu entries under the category “Other” (I’m using Ubunut).

    What I did was:
    sudo locaet *.desktop
    and locate delete those entries you don’t want to appear in the menu.
    Just make backup in case.

    If the list is too long you can use this command:
    sudo locate *.desktop > ~/Desktop/menu
    and search for it in the menu file on you desktop

    Comment by OunSu — July 20, 2007 #

  6. Correction: I’s using xubuntu, not ubuntu

    Comment by OunSu — July 20, 2007 #

  7. It’s better to just use “sudo locate *.desktop | less” rather than possibly overwrite a file in your home directory, and at the very least create an unnecessary extra file.

    Comment by sulphur — September 28, 2007 #

  8. as OunSu im also using xubuntu, and ive found some shortcuts that shows in the category “Other” (that wine is using) in this directory:

    ~/.local/share/applications/wine/

    sorry if my english is bad, im from sweden :)

    Comment by tommy — November 8, 2007 #

  9. Thanks for your comment there, tommy. It was helpful where the others failed. I wish I had read your comment first instead of trying everything else and coming up with nothing. Apparently the files I was looking for were not .desktop files. ^_^;;;

    Comment by ami — November 19, 2007 #

  10. I second that. Tommys’ solution solved my wine issue. Thanks.

    Comment by MockY — December 30, 2007 #

  11. I would like to thank Tommy as well. Check your ~/.local/applications folder

    Thank you

    Comment by Tsvi M — May 16, 2008 #

  12. I have xubuntu.
    How do I locate ~/.local/share/applications/wine/

    Comment by TN — May 22, 2008 #

  13. Never mind.
    I found out that you have to show hidden files before you can locate .local

    Comment by TN — May 22, 2008 #

  14. This is real usefull

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

    Comment by Maybe — June 24, 2008 #

Leave a comment

XHTML: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Blog at WordPress.com. | Theme: Pool by Borja Fernandez.
Entries and comments feeds.