->
This tutorial is for those people that like to run gnome and KDE side by side. This will allow you to only show the native apps in the menus within each desktop environment instead of showing everything.
update: I wrote a script to automate this process. If you’d like to use that instead it is available below.
You can run the following commands to make gnome menu backups and KDE menu backups prior to making the changes, if you want to be safe.
mkdir -p ~/.menu-backup{gnome,kde}cp /usr/share/applications/* ~/.menu-backup/gnome
cp /usr/share/applications/kde/* ~/.menu-backup/kde
To update the menu listings then run (one continued line):
sudo -icd /usr/share/applications/ ; for i in *; do echo “ShowOnlyIn=GNOME” >> $i; done ; cd /usr/share/applications/kde/ ; for i in *; do echo “ShowOnlyIn=KDE” >> $i; done ; exit
The changes should take place immediately and you should now only see the native apps in each menu. Enjoy.
If everything seems to work the way you like you can delete the backup directories with the following commands:
rm -r ~/.menu-backup-gnomerm -r ~/.menu-backup-kde
I suppose I could write a small shell script to do the work for you.. would anyone prefer that? I got bored and wrote it.
If this site has been useful, please consider participating in the Fundraiser.