View Full Version : How to: remove Kubuntu items in the Gnome menu
A-star
August 24th, 2005, 02:59 AM
I found this in another thread and it might be usefull to some people:
It removes every kubuntu program from the gnome menu:
cd /usr/share/applications/kde
sudo chmod a+rw /usr/share/applications/kde/*
for i in *; do echo "OnlyShowIn=KDE;" >> $i; done
sudo chmod 644 /usr/share/applications/kde/*
Knome_fan
August 24th, 2005, 03:10 AM
You can scrap the chmod part if you do it as root, that is use sudo -s first.
theine
October 7th, 2005, 07:24 PM
Or alternatively...
for i in /usr/share/applications/kde/*; do echo "OnlyShowIn=KDE;" | sudo tee -a $i; done
lizardo
October 8th, 2005, 10:05 PM
Or still:
sudo sed -i '/OnlyShowIn=/d;$a\OnlyShowIn=KDE;' \
/usr/share/applications/kde/*.desktop
which will also remove any existing "OnlyShowIn" settings before adding "OnlyShowIn=KDE;".
ChaKy
October 9th, 2005, 01:07 PM
Or still:
sudo sed -i '/OnlyShowIn=/d;$a\OnlyShowIn=KDE;' \
/usr/share/applications/kde/*.desktop
which will also remove any existing "OnlyShowIn" settings before adding "OnlyShowIn=KDE;".
How do I now remove OnlyShowIn=KDE from all *.desktop files? Thanks.
N17R0
October 10th, 2005, 11:54 PM
Nice, this is what I was looking for, this should become standard in linux.
Who wants to see KDE items in GNOME or XFCE anyway, if u want to
run KDE-apps then login to KDE, thats what Desktop environments are for right?
[Problem]
I have XFCE+GNOME+KDE on my Ubuntu installed, now what hack can I use,
so I have it like this when I login to one of these desktop environments:
KDE = only the KDE apps visible in the kde menu
GNOME = only the GNOME apps visible in the gnome menu
XFCE = only the XFCE apps visible in the xfce menu
[XFCE = only the xfce+gnome apps visible in the xfce menu]
[XFCE = only the xfce+kde apps visible in the xfce menu]
So I don't have to browse 10 miles of menu entry's to find the app I want to use.
TIA
Orunitia
October 17th, 2005, 09:16 AM
You should add this to the Breezy forum, so more people will see this. It's nice to not have KDE programs in my menu that I never use in gnome.
A-star
October 17th, 2005, 09:53 AM
will do that now.
Adrian
November 8th, 2005, 06:16 PM
Just thought I'd link to two recent discussions on this subject. Maybe someone will find them useful.
http://www.ubuntuforums.org/showthread.php?t=70410
http://www.ubuntuforums.org/showthread.php?t=70679
rlgoddard
June 22nd, 2006, 08:33 AM
I found this in another thread and it might be usefull to some people:
It removes every kubuntu program from the gnome menu:
cd /usr/share/applications/kde
sudo chmod a+rw /usr/share/applications/kde/*
for i in *; do echo "OnlyShowIn=KDE;" >> $i; done
sudo chmod 644 /usr/share/applications/kde/*
This is an old thread, but I have the same problem as in Breezy. I have Dapper Drake. Would this work in Dapper as well? Do I need to modify any commands to make it work in Dapper?
Take care,
Russ
Zelut
July 17th, 2007, 12:33 AM
Thanks for the tips here guys. I wrote this up as a tutorial on my blog and also wrote a shell script to do all the dirty work. If you're interested you can check out both below. (tested on Feisty, for gnome and KDE. No Xfce support yet).
menu-cleaner (http://ubuntu-tutorials.com/2007/07/18/removing-kde-icons-in-gnome-remove-gnome-icons-in-kde/)
VitaminBB
November 9th, 2008, 12:22 AM
Im having the same problem right now.
I installed KDE desktop to see how I liked it and now my menu is cluttered with KDE apps.
How do I hide them when im logged in gnome?
This seems like such a stupid problem, why would I want KDE apps showing in Gnome,especially if I installed the KDE desktop to use in seperate sessions?
Anyhow, the terminal codes given earlier in this thread didnt work for me and im still stuck with a ton of KDE apps in my Gnome menu.
Help?
VitaminBB
November 9th, 2008, 02:32 AM
Anyone ?
vBulletin® v3.8.1, Copyright ©2000-2009, Jelsoft Enterprises Ltd.