Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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.)

share|improve this question
    
do you mean that you don't want to see Banshee icon in KDE or does it somehow behave in KDE? –  Paulius Šukys 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 '12 at 9:27
add comment

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

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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