Menu-Spec and nested AppDirs
Heinrich Wendel
h_wendel at cojobo.net
Wed May 25 17:44:12 EEST 2005
Hi,
While writing a MenuEditor component for pyxdg I ran into the following
problem. Take the following menu file:
<Menu>
<Name>Applications</Name>
<DefaultAppDirs/>
<DefaultDirectoryDirs/>
<Menu>
<Name>Editors</Name>
<Include>
<Filename>gedit.desktop</Filename>
</Include>
</Menu>
<Menu>
<Name>Debian</Name>
<AppDir>/usr/share/debian/applications</AppDir>
<Include>
<Filename>vim.desktop</Filename>
</Include>
</Menu>
</Menu>
This works fine as long as you don't try to edit things.
First try to edit vim.desktop, but what happens? You can't edit it
because /usr/share/debian/applications will have a higher priority than the
users settings.
Second Try to move vim.desktop by excluding it in the debian menu and
includnig it in the editors menu., but what happens? It won't work, because
the Debian Menu can't find an item called vim.desktop.
mfg, heinrich :-)
More information about the xdg
mailing list