How to add e menu entry to KDE start menu over CLI
Hi there
I have an own program that I have created a install package for (.deb). I want to create a menu entry in KDE when it is installed. So far all I could find was a GUI Menu Editor for KDE, which does not work for me obviously. Anyone know how you script adding a menu entry? Cheers Markus |
Just add the entry to /usr/share/applications
|
[solved]
heck? THAT easy?
would not have expected it!! thanx Markus |
not so easy
Hi
I tried it and it is not that easy really. The entries that I create with the menu editor (as a template) get created in the local dir of the user and do not show up for other users therefore. When I copy these .desktop entries into /usr/share/applications they don't show up in other peoples menus. I want that the programs I install are accessible by all users. Markus |
Quote:
Can you post the contents of one of your .desktop files? Are you using KDE 3 or KDE 4? Though the method for both is the same I think. |
I suspected the permissions to be the problem at the beginning too, so I changed everthing to read (user / group / other), in line with all the other files in the dir.
here one .desktop file: brownyworld.desktop (which is really only a directory, a subcategory, under which you can fit menu entries: # cat /usr/share/applications/Brownyworld.desktop [Desktop Entry] Comment= Exec[$e]= GenericName=Brownyworld Tools Icon=access2 Name=Brownyworld Path[$e]= StartupNotify=true Terminal=0 TerminalOptions= Type=Application X-KDE-SubstituteUID=false X-KDE-Username= ----------------------- and the other one (the real menu entry to launch a program) cat /usr/share/applications/Frostybaby\ unstable.desktop [Desktop Entry] Comment= Exec[$e]=python /usr/share/frostybaby-unstable/frostybaby.py GenericName= Icon=amor Name=Frostybaby unstable Path[$e]= StartupNotify=true Terminal=0 TerminalOptions= Type=Application X-KDE-SubstituteUID=false X-KDE-Username= So far I cannot find out what is going wrong, maybe you got an idea. Markus |
Well under KDE 3 /usr/share/applications/Frostybaby\ unstable.desktop works fine for me. It shows up in the K-Menu under Applications. If you want it to show somewhere else you need to specify a category. If it doesn't show up for you then try logging out and in again or restart the kicker with
Code:
$ dcop kicker kicker restart Code:
$ cat /etc/xdg/menus/custom.menu Code:
$ cat /usr/share/desktop-directories/places.directory Code:
$ cat /usr/share/applications/foo.desktop |
Yes, this is KDE3.5.
On Debian though and I don't have a applications menu. And so far I am not seeing any menu entries that I put into /usr/share/applications...How does this work with the menu entries in /etc/xgd/ ? is there any tutorial or info how everything is laid-out and connected with eachother? Wiki or anything? I see that the files in xgd are written in XML, do you know any editor on Linux that can display XML in a structured view, meaning that you can edit the fields and show it hierachical, instead of plain text? So far I came up empty handed. thanx Markus |
All times are GMT -5. The time now is 10:45 PM. |