bullet2916
Posts: 7
Joined: Fri Jul 31, 2015 12:09 am

LXDE Menu

Fri Jul 31, 2015 12:19 am

I have the newer version of Raspbian that includes Programming, Internet, etc. as the menu items.

I would like to add an extra item to the list.

I've experimented and the menu is controlled by /etc/xdg/menus/lxde-pi-applications.menu (removed both lxde-applications.menu and lxde-pi-applications.menu and the menu disappeared and then putting lxde-pi-applications.menu back restored the menu)

However, the contents of lxde-pi-applications don't really seem to correspond to the menu. How exactly do I add a new item?

User avatar
KLL
Posts: 1453
Joined: Wed Jan 09, 2013 3:05 pm
Location: thailand
Contact: Website

Re: LXDE Menu

Fri Jul 31, 2015 12:58 am

i also not found info about making my own menu "directory" .. desktop categories
so i play, see http://kll.engineering-news.org/kllfusi ... 2#example8
short version, looks like:
- directories are prepared in
/usr/share/desktop-directories/
- but directories only show up if they are needed
so must start on the lowest level and make first a myprogram.desktop
in /usr/share/applications/
or /usr/share/raspi-ui-overrides/applications/
with Categories=mycategory;
- any change you might only see after a update:
lxpanelctl restart
- make a /usr/share/desktop-directories/mycategory.directory
will not show up correctly,
- need add a /usr/share/menu/mycategory
- add make a nice icon for it too

bullet2916
Posts: 7
Joined: Fri Jul 31, 2015 12:09 am

Re: LXDE Menu

Fri Jul 31, 2015 3:24 pm

Thanks for you reply.

I found that I needed to not only create a .directory file and .desktop file, but I also needed to add the category in /etc/xdg/menus/lxde-pi-applications.menu

User avatar
KLL
Posts: 1453
Joined: Wed Jan 09, 2013 3:05 pm
Location: thailand
Contact: Website

Re: LXDE Menu

Fri Jul 31, 2015 3:47 pm

hi bullet2916
i talk about that file in my blog and i still think it should not be touched.
( because a system update might overwrite it )

add i just installed arduino for a test, because i know that it does a new directory entry,
and also with that installation that file you talk was not touched.
but i found new entries in
/etc/xdg/menus/applications-merged/electronics.menu as symlink from
/usr/share/extra-xdg-menus/electronics.menu
i think that was the way i was using too.

but i will soon do a new setup and test exactly that menu thing again. c.u.
anyhow good you got it running.

User avatar
KLL
Posts: 1453
Joined: Wed Jan 09, 2013 3:05 pm
Location: thailand
Contact: Website

Re: LXDE Menu

Sun Aug 02, 2015 1:35 am

sorry, when i checked again, it did not work to use a
/usr/share/raspi-ui-overrides/applications/MYPROGRAM.desktop
( it works as a icon, but it did not trigger the new main menu entry?) i had to store it again at
/usr/share/applications/MYPROGRAM.desktop
pls see all the code http://kll.engineering-news.org/kllfusi ... u_info.txt
you work with copy paste to putty? then its easy!
and how it looks http://kll.engineering-news.org/kllfusi ... I_MENU.png
p.s. i follow the way what the arduino installation does when it creates a new main menu entry.

Return to “Beginners”