You are not logged in.

#1 2013-10-09 01:18:49

electric_blue
Member
From: Ann Arbor, MI
Registered: 2013-10-09
Posts: 7

[SOLVED] GTK2 Themes Not Working

I noticed yesterday that Firefox wasn't using my GTK2 theme.  And today when I restarted gajim, I noticed no other GTK2 programs were either.

I normally use the HighContrastInverse theme (removed from Upstream but I kept a copy).  The gtk-ctheme program displays the theme fine, but when I start up gajim or firefox or gtk-demo, it's back to the default.

I tried TerminalEnvy with similar results.  It showed up fine in gtk-chtheme and not at all in any applications.

I tried some newer themes, too.  Delorian Dark Green, OMG-Dark, and Dorian.  They showed up fine in gtk-chtheme, but rather than being ignored in applications, they were partway ignored.  gtk-demo looked like it was a mish-mash of whatever theme I was trying and the default.

GTK3 themes are working perfectly fine.

I don't have gconf running.  The first thing I did to see if it might fix the problem was get rid of it, but no luck there.

Anyone else notice this behavior or know how to fix it?

Thanks.

Last edited by electric_blue (2013-10-09 01:59:09)

Offline

#2 2013-10-09 01:45:13

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,543
Website

Re: [SOLVED] GTK2 Themes Not Working

I've seen similar problems when no GTK2_RC_FILES environment variable was set.  Check with `env | grep GTK`


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2013-10-09 01:59:50

electric_blue
Member
From: Ann Arbor, MI
Registered: 2013-10-09
Posts: 7

Re: [SOLVED] GTK2 Themes Not Working

Thank you, that fixed it.

Offline

#4 2013-10-10 00:12:28

themusicalduck
Member
Registered: 2011-07-04
Posts: 147

Re: [SOLVED] GTK2 Themes Not Working

I'm having this problem too on Gnome 3.10. Could you elaborate a little on how to fix it? I have no output for "env | grep GTK", so it looks like something is wrong.

I used to set everything with the Gnome tweak tool, but fonts and icons settings are not respected for gtk2 applications anymore. If I use gtk-theme-switch2 and lxappearance, I can set the correct font and icons up with those, but they do not persist after reboot.

I thought I could set things up through gconf-editor in /apps/desktop/gnome/interface, but I have "This key is not writeable" errors.

Thanks.

Last edited by themusicalduck (2013-10-10 00:36:05)

Offline

#5 2013-10-10 02:16:05

electric_blue
Member
From: Ann Arbor, MI
Registered: 2013-10-09
Posts: 7

Re: [SOLVED] GTK2 Themes Not Working

Just add

export GTK2_RC_FILES=$HOME/.gtkrc-2.0

To either a shell startup script or somewhere in your X session script.

Offline

#6 2013-10-10 03:17:30

themusicalduck
Member
Registered: 2011-07-04
Posts: 147

Re: [SOLVED] GTK2 Themes Not Working

That worked. Thanks!

Offline

Board footer

Powered by FluxBB