Hide Gnome Apps in KDE and Vice Versa
Running Ubuntu is great until you try to install Kubuntu (or vice versa), because your previously neatly organised menu system goes into overload meltdown with dozens of programs from both desktops fighting for your priority.
But there’s a fix: you can force individual shortcuts to appear only in Gnome or only in KDE as opposed to being in both. To do this, switch to root and browser to /usr/share/applications (for Gnome apps) or /usr/share/applications/kde (for KDE apps). Then open a shortcut file in your text editor, and add one of these two lines to the bottom:
OnlyShowIn=KDE
for KDE-only applications; or
OnlyShowIn=GNOME
for Gnome-only applications.







