GTK theme not set at startup

Mike Massonnet mmassonnet at gmail.com
Sat Nov 8 18:23:12 CET 2008


Le Sat, 8 Nov 2008 18:13:15 +0100,
Enrico Tröger <enrico.troeger at uvena.de> a écrit :

> On Sat, 8 Nov 2008 18:03:30 +0100, Mike Massonnet
> <mmassonnet at gmail.com> wrote:
> 
> >Le Sat, 8 Nov 2008 16:04:03 +0100,
> >Enrico Tröger <enrico.troeger at uvena.de> a écrit :
> >
> >> Hi guys,
> >> 
> >> 
> >> since about 3 weeks or so, Xfce doesn't set my GTK theme anymore at
> >> startup instead the default theme (I think it's "Xfce") is loaded.
> >> I have to set it manually after startup in the appearance settings
> >> dialog and this works fine. But it's not set automatically anymore.
> >> 
> >> I don't assume it's a bug in Xfce since nobody else reported this
> >> issue but instead it might be a problem with my local config,
> >> maybe.
> >> 
> >> In /home/enrico/.config/xfce4/xfconf/xfce-perchannel-xml/xsettings.xml
> >> the ThemeName property has the correct value for my theme (before
> >> and after startup of Xfce).
> >> 
> >> The only thing I could imagine is that it is related to the fact
> >> that my theme is stored in ~/.themes/ instead of
> >> $prefix/share/themes. Does this make any difference?
> >> 
> >> Any ideas?
> >
> >No ideas.  I have the same bug... but it's weird.  I cleaned up my
> >~/.config, nothing, I renamed my whole home directory (dito clean and
> >empty home), still nothing.
> >
> >xfconf-query -c xsettings -p /Net/ThemeName reports Xfce on login.
> 
> How tested?  I'd test it too, just wanna get sure we are doing it in
> the same way.

I tested and checked a little more: the default theme that is hardcoded
in the source for /Net/ThemeName is "Default", but, there is a default
xml file shipped with xfce4-settings (xsettings.xml) that is installed
inside $prefix/etc/xdg/xfce4/xfconf/xfce-perchannel-xml/xsettings.xml
and that specific file has the /Net/ThemeName set to "Xfce". :/

As said, I also tested more, I ran xfsettingsd by hand, and the theme
is set to Xfce, next I killed/restarted xfsettingsd with the same wrong
theme again and again.  Then I modified the value by hand with
xfconf-query and retried to kill/restart xfsettingsd and this time with
success.

There is like a first initial value that is kept around... now to test
a bit more, like dropping that default xml file.  /me *shrugs* ftm

> Just a wild idea:
> maybe this is some kind of race condition in the startup code? Maybe
> the theme is set before xfce4-settings read the actual theme name?
> Maybe this is related to the parallel startup stuff.
> But I didn't do anything to proof this guess and didn't even read any
> code, so this might also be completely wrong :).

That also can be looked of course.  I'll see if it is worthy to grep
the source for the part that sets the theme.

> Regards,
> Enrico

Regards
Mike



More information about the Xfce4-dev mailing list