You are not logged in.

#1 2006-03-22 21:00:22

shaurz
Member
Registered: 2004-02-02
Posts: 358

KDE/GNOME menus

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

#2 2006-03-22 23:03:04

WillySilly
Member
Registered: 2005-01-14
Posts: 268

Re: KDE/GNOME menus

.desktop files go in /usr/share/applications and the corresponding icon for the menu entry goes in /usr/share/pixmaps

Offline

#3 2006-03-23 00:08:39

shaurz
Member
Registered: 2004-02-02
Posts: 358

Re: KDE/GNOME menus

Thanks

Offline

#4 2006-03-23 03:44:03

McQueen
Member
From: Arizona
Registered: 2006-03-20
Posts: 387

Re: KDE/GNOME menus

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

#5 2006-03-23 05:43:53

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: KDE/GNOME menus

McQueen wrote:

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

#6 2006-03-23 11:34:49

_Gandalf_
Member
Registered: 2006-01-12
Posts: 735

Re: KDE/GNOME menus

I use one command (am one of the long commands fan sry smile ) 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/*

Offline

#7 2006-03-23 12:20:40

McQueen
Member
From: Arizona
Registered: 2006-03-20
Posts: 387

Re: KDE/GNOME menus

iphitus wrote:

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

#8 2006-03-23 12:30:36

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: KDE/GNOME menus

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

Board footer

Powered by FluxBB