You are not logged in.
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
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
Last edited by Ahau (2012-01-30 18:18:29)
Offline
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
[ Generated in 0.006 seconds, 7 queries executed - Memory usage: 523.66 KiB (Peak: 531.89 KiB) ]