Page 1 of 1

Reading out menu contents

Posted: Mon Sep 26, 2011 7:04 pm
by Stefan Reich
Hi all!

I am currently writing my own start menu as a replacement for the lxpanel menu in Knoppix. (This is for the Lua OS Live-CD, see luaos.net.) Of course, I want to include the original start menu items in my new menu.

I have made fairly good progress reading out /usr/share/applications and /usr/share/desktop-directories and also the required icons.

But one thing totally confuses me. How are the applications mapped to the directories? The category names used in the app's .desktop files do not seem to appear in the .directory files.

For example, in brasero.desktop, it says: "Categories=GNOME;AudioVideo;DiscBurning;". The corresponding category file is called lxde-audio-video.directory. (I checked that this file is used by verifying that modifications in it appear in the menu.)

Now my question is: How does lxpanel know that lxde-audio-video.directory is the file to use for applications with the category "AudioVideo"? Is the file name looked at? Then the hyphen would have to removed and lower/uppercase matched. Also, this theory does not seem to match categories like "System Tools".

Can anyone explain how lxpanel constructs its menu? That would be highly appreciated.

Best regards,
Stefan

Re: Reading out menu contents

Posted: Thu Sep 29, 2011 6:54 pm
by amjjawad
Hello Stefan and Welcome to LXDE Forum :)

I'm not a developer and can't answer you question but I suggest to check this out: http://wiki.lxde.org/en/IRC_Chat

I prefer to talk directly to LXDE Developers and I'm sure they will help you :)

Thanks and Good Luck :)