Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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



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

enter image description here

share|improve this answer

Your Answer


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.