Xfce Forum

Sub domains
 

You are not logged in.

#1 2012-01-30 14:59:49

imhere14
Member
From: Austria / Österreich
Registered: 2012-01-30
Posts: 5

[Solved] Removing a menu line will just move the entry

Hi, folks!

It's my second day with Xfce and it I'm really enjoying it. But I have on problem:

I copied, as said in the Wiki, the file xfce-applications.menu to ~/.config/menus. However, if I delete the line "<Filename>exo-mail-reader.desktop</Filename>" for example, it will just get down between Documentation and Developing in the menu. How can I completely remove it?

imhere14


There is nothing more democratic than a TV. You can turn it on, change the channel, and turn it off.

Offline

#2 2012-01-30 18:15:12

Ahau
Member
Registered: 2011-12-22
Posts: 27

Re: [Solved] Removing a menu line will just move the entry

hi!  I just dealt with this issue a few days ago.  This happens because the menu still searches for and displays all .desktop entries it can find in /usr/share/applications.  So, even though you remove this line from the xml file, it will still find /usr/share/applications/exo-mail-reader.desktop, see that it is set to be a top-level entry, and apply it as such.

You could either delete /usr/share/applications/exo-mail-reader.desktop or add 'NotShowIn=XFCE;' to the end of that file (without the single quotes) to hide it from the menu for all users on your system.  If you only want to remove it from the menu for the single user, then you need to exclude it from the entire menu.  Do this towards the top of the xml file that you've saved inside ~/.config/menus/, such as this:

<Menu>
    <Name>Xfce</Name>
 
    <DefaultAppDirs/>
    <DefaultDirectoryDirs/>
 
    <Include>
        <Category>X-Xfce-Toplevel</Category>
    </Include>
    
    <Exclude>
        <Filename>exo-mail-reader.desktop</Filename>
    </Exclude>
        
 
    <Layout>
        <Filename>xfrun4.desktop</Filename>
        <Separator/>
        <Filename>exo-terminal-emulator.desktop</Filename>
        <Filename>exo-file-manager.desktop</Filename>
        <Filename>exo-web-browser.desktop</Filename>
        <Separator/>
        <Menuname>Settings</Menuname>
        <Separator/>
        <Merge type="all"/>
        <Separator/>
        <Filename>xfhelp4.desktop</Filename>
        <Filename>xfce4-about.desktop</Filename>
        <Filename>xfce4-session-logout.desktop</Filename>
    </Layout>

Hope that helps smile

Last edited by Ahau (2012-01-30 18:18:29)

Offline

#3 2012-01-30 19:34:41

imhere14
Member
From: Austria / Österreich
Registered: 2012-01-30
Posts: 5

Re: [Solved] Removing a menu line will just move the entry

Thank you, that worked perfectly.


There is nothing more democratic than a TV. You can turn it on, change the channel, and turn it off.

Offline

Board footer

Powered by FluxBB