Disable GTK+ 3.12 Client Side Decorations in KDE


I've updated my Ubuntu 14.04 with GNOME/GTK 3.12 (because I want to test drive GNOME and play with some recent GNOME applications), but as a result, all GNOME application now use client side decorations also when running under my default KDE workspace.

Is there a way to disable the GTK+ 3.12 default use of CSD outside GNOME shell?

Best Answer

You could try gtk3-nocsd: article on WebUpd8

sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update
sudo apt-get install gtk3-nocsd

Add the following to your "~/.profile"

export GTK_CSD=0
export LD_PRELOAD=/path/to/gtk3-nocsd.so

The author an WebUpd8 writes, that Unity doesn't start with that, so you can edit a .desktop file in /usr/share/applications, for example gthumb:


Add the follwing to "Exec=":

env LD_PRELOAD=/usr/lib/gtk3-nocsd/gtk3-nocsd.so

so that it looks like this:

Exec=env LD_PRELOAD=/usr/lib/gtk3-nocsd/gtk3-nocsd.so gthumb %U