Ubuntu – Completely disable GNOME for the user in Ubuntu

desktop-environmentkdenot-root-userUbuntu

At the office we've been issued laptops with Ubuntu pre-installed. Unity is of course the OS default, but KDE is available. I prefer KDE and so have set KDM and KDE as my defaults. However some GNOME things are persisting, such as Guake, and the GNOME quick search (whatever it's called) starts on login. I just had GNOME's archiver open a zip file instead of KDE's. How can I finish converting my account to use KDE components by default?

For clarification I do not wish to uninstall GNOME. I simply want to stop GNOME software from starting in my account. Uninstalling GNOME or Unity would mean other users of the machine couldn't use these programs.

Update:
I think I found the origin of the problem of the autostarting applications. There is a whole folder at /etc/xdg/autostart of .desktop files that I think is loading these things. Not sure what needs to be done to disable them for KDE users only.

Best Answer

Technically, there is no such thing as “a Gnome program” or “a KDE program”. This is a purely human concept. There are executables linked with Gnome libraries, and executables linked with KDE libraries; in theory, a program could be linked with both, or decide at runtime which one (if any) to load and use.

If KDE desktop environment components don't launch the proper KDE program (assuming that program is installed) when one exists, that may well be a misconfiguration which you should report as a bug to Ubuntu.

You should be able to get rid of many Gnome applications (e.g. the wrong archiver popping up when you click on a zip file) by supplying your own ~/.mailcap referencing KDE applications. Copy the lines referencing programs that you like from /etc/mailcap.

Related Question