<div dir="ltr">Hi,<div><br></div><div>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. </div>
<div><br></div><div>So, the question is given a .desktop file, how to know the name of it's corresponding menu?</div><div><br></div><div>::Example::</div><div><br></div><div><span style="font-family:arial,sans-serif;font-size:13px">The firefox desktop file has as categories:</span></div>
<div><div style="font-family:arial,sans-serif;font-size:13px">Categories=GNOME;GTK;Network;WebBrowser;<br></div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">
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:</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div>
<div style="font-family:arial,sans-serif;font-size:13px"><Menu><br></div><div style="font-family:arial,sans-serif;font-size:13px"><div> <Name>Applications</Name></div><div> <MergeFile type="parent">/etc/xdg/menus/gnome-applications.menu</MergeFile></div>
<div> <Menu></div><div> <Name>Internet</Name></div><div> <Exclude></div><div> <Filename>firefox.desktop</Filename></div><div> </Exclude></div><div>
</Menu><br></div><div></Menu></div></div><div><br></div><div>I don't understand how Alacarte got that Applications->Internet path given the firefox.desktop file.</div><div><br></div><div>Regards!</div>
<div><br></div>-- <br><div dir="ltr">J. Félix Ontañón Carmona<br></div><div dir="ltr"><br></div>
</div></div>