QT4 apps and GTK+ icons

When using a desktop environment like XFCE, the only thing required to make QT4 programs look consistent with the rest of the desktop was this. QT4 applications like Clementine inherited the GTK+ theme settings and apparently XFCE took care of the icons theme. However, this is not the case with E17. I googled a bit and found this entry in the excellent Arch Linux wiki. Somehow, the solutions they suggested didn’t fit to my system, for example I do not have gconf, but dconf.

So, I decided to try putting the following in /etc/profile.d/qt4.sh (just below the ones that take care of inheriting the GTK theme):

GTK2_RC_FILES="$HOME/.gtkrc-2.0:/etc/gtk-2.0/gtkrc"
export GTK2_RC_FILES
export DESKTOP_SESSION=gnome

Logged out and in and it works.

Leave a comment

Filed under desktop, system

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s