I want to do something to prevent Banshee from start in KDE (even accidentally)

Edit: I want to do somehow lock the banshee in KDE. (/bin/banshee be only valid in gnome.)

link|improve this question

50% accept rate
do you mean that you don't want to see Banshee icon in KDE or does it somehow behave in KDE? – shookees Dec 31 '11 at 14:13
@shookees: No. I don't care about visibility. I want to do something to prevent banshee from start in KDE. – sorush-r Jan 1 at 9:27
feedback

1 Answer

up vote 3 down vote accepted

To hide banshee from the menu's in KDE you'll need to change the desktop file to only show the menu item in Unity/Gnome

mkdir -p ~/.local/share/applications
cp /usr/share/applications/banshee.desktop ~/.local/share/applications

Edit the file ~/.local/share/applications/banshee.desktop

Add to the bottom of this file

OnlyShowIn=GNOME;Unity;

Save.

However the above only hides banshee. To prevent banshee from starting in KDE you'll need to edit the banshee executable script

sudo nano /usr/bin/banshee

now add the following at the position shown:

if [ x"$KDE_FULL_SESSION" = x"true" ]; then
  exit
fi

enter image description here

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.