Bug 973161

Summary: cannot change theme to anything but Adwaita
Product: [Fedora] Fedora Reporter: Marcus Moeller <marcus.moeller>
Component: lxappearanceAssignee: Christoph Wickert <christoph.wickert>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 19CC: ccecchi, christoph.wickert, mclasen
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-06-13 16:16:40 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Marcus Moeller 2013-06-11 12:01:39 UTC
Description of problem:
I am trying to change the GTK Theme to something else than Adwaita on a icewm desktop. To do so I have tried gtk-chtheme and lxappearance which both worked in the path. 

No theme change seems to be applied.

Comment 1 Christoph Wickert 2013-06-13 15:43:45 UTC
Are we talking about gtk2 or gtk3 here?

Comment 2 Marcus Moeller 2013-06-13 15:57:20 UTC
I have only tested GTK2 applications, but I am going to try to set up another reproducer to see if it also affects GTK3.

Comment 3 Christoph Wickert 2013-06-13 16:16:40 UTC
Not necessary, it will not work anyway. lxappearance just writes values to ~/.config/lxsession/LXDE/desktop.conf but doesn't apply them. For that you need an XSETTINGS manager, e.g, gnome-settings-manager or lxsession. Or you need something that directly writes to ~/.gtkrc for gtk2 (or ~/.gtkrc-2.0?) and ~/.config/gtk-3.0/settings.ini, but these changes are then only applied when an app is started.

Comment 4 Marcus Moeller 2013-06-14 06:51:17 UTC
Thanks for pointing that out, but the problem also occurs using gtk-chtheme which is writing to ~/.gtkrc-2.0 correctly.

Besides that lxappearance is causing a segfault right now, but that might be another bug.

Comment 5 Marcus Moeller 2013-06-14 07:04:40 UTC
I have noticed that: https://bugzilla.redhat.com/show_bug.cgi?id=953945 has already been reported on the lxappearance segfault. I am going to re-open this one and change the comp to gtk-chtheme.

Comment 6 Marcus Moeller 2013-06-14 08:56:17 UTC
After some additional debugging with the help of Christoph, I was able to figure out that gtk-chtheme does not write:

gtk-theme-name="THEME_NAME"

to .gtkrc-2.0. After adding it manually, the theme is adopted correctly. I am going to talk to the upstream developer of gtk-chtheme on that.