Reading out menu contents

Discussion on LXDE releases and Development. This forum is not the best way to contact the developers, please use the Development mailing list and Sourceforge to interact with them.
Locked
Stefan Reich
Posts: 1
Joined: Mon Sep 26, 2011 6:54 pm

Reading out menu contents

Post 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
amjjawad
Posts: 304
Joined: Mon Aug 29, 2011 1:51 am
Contact:

Re: Reading out menu contents

Post 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 :)
Feel Free to contact me: http://amjjawad.net
Locked