You are not logged in.
Pages: 1
What is the usual/preferred method of getting icons in to GNOME and KDE menus? Is there a standard location? Are there any helper programs or will stuffing a .desktop file somewhere just work?
Offline
.desktop files go in /usr/share/applications and the corresponding icon for the menu entry goes in /usr/share/pixmaps
Offline
Thanks
Offline
If you don't want your entry to appear in both menu sets, you can append the desktop file to include the choice of text below, according to which menu you are targeting.
OnlyShowIn=KDE
OnlyShowIn=GNOME
/path/to/Truth
Offline
If you don't want your entry to appear in both menu sets, you can append the desktop file to include the choice of text below, according to which menu you are targeting.
OnlyShowIn=KDE
OnlyShowIn=GNOME
But this isnt reccomended when distributing .desktop files, as other users may well want to see those options in their menu.
Offline
I use one command (am one of the long commands fan sry ) to hide kde menus from gnome menu, u can adjust it to hide gnome menu in lde as well
cd /opt/kde/share/applications/kde && sudo chmod a+rw /opt/kde/share/applications/kde/* && for i in *; do if ! grep "OnlyShowIn=KDE;" $i; then echo "OnlyShowIn=KDE;" >> $i; fi; done && sudo chmod 644 /opt/kde/share/applications/kde/*
[My Blog] | [My Repo] | [My AUR Packages]
Offline
But this isnt reccomended when distributing .desktop files, as other users may well want to see those options in their menu.
Sure, I was simply under the impression we were speaking about a user's individual desktop environment and their desire to make user specific changes, not global or packaging alterations. When I make Slackpacks I never presume to speak for the user, and so after providing the desktop file (if needed) I let them decide whether or not to narrow its menu usage.
/path/to/Truth
Offline
My comment wasnt directed at anyone, I was just putting it there to ensure that this didnt end up in any packages, which is plausible.
Offline
Pages: 1