José Félix Ontañon
2014-05-12 16:26:26 UTC
Hi,
I'm trying to build an app that automatizes the excluding of some launchers
from menu, by tweaking ~/.config/xdg/menus I've noticed the Categories in
the xdg-desktop aren't the same as the menu names in xdg-menu.
So, the question is given a .desktop file, how to know the name of it's
corresponding menu?
::Example::
The firefox desktop file has as categories:
Categories=GNOME;GTK;Network;WebBrowser;
But the the menu names that needs to be indicated to exclude firefox from
the menu is Applications->Internet. Below the code produced by Alacarte:
<Menu>
<Name>Applications</Name>
<MergeFile
type="parent">/etc/xdg/menus/gnome-applications.menu</MergeFile>
<Menu>
<Name>Internet</Name>
<Exclude>
<Filename>firefox.desktop</Filename>
</Exclude>
</Menu>
</Menu>
I don't understand how Alacarte got that Applications->Internet path given
the firefox.desktop file.
Regards!
I'm trying to build an app that automatizes the excluding of some launchers
from menu, by tweaking ~/.config/xdg/menus I've noticed the Categories in
the xdg-desktop aren't the same as the menu names in xdg-menu.
So, the question is given a .desktop file, how to know the name of it's
corresponding menu?
::Example::
The firefox desktop file has as categories:
Categories=GNOME;GTK;Network;WebBrowser;
But the the menu names that needs to be indicated to exclude firefox from
the menu is Applications->Internet. Below the code produced by Alacarte:
<Menu>
<Name>Applications</Name>
<MergeFile
type="parent">/etc/xdg/menus/gnome-applications.menu</MergeFile>
<Menu>
<Name>Internet</Name>
<Exclude>
<Filename>firefox.desktop</Filename>
</Exclude>
</Menu>
</Menu>
I don't understand how Alacarte got that Applications->Internet path given
the firefox.desktop file.
Regards!
--
J. Félix Ontañón Carmona
J. Félix Ontañón Carmona