GTK theme not set at startup
Mike Massonnet
mmassonnet at gmail.com
Sat Nov 8 19:54:29 CET 2008
Le Sat, 8 Nov 2008 18:23:12 +0100,
Mike Massonnet <mmassonnet at gmail.com> a écrit :
> 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
I hope I have something more solid now.
1. I log into X (no xfconf daemon, settings daemon etc)
2. I open a term A and execute the following:
strace -eopen xfconfd|&fgrep .xml
3. Next I open a new term B and execute the following:
xfconf-query -c xsettings -p /Net/ThemeName
4. I see in term A the following files being read:
open("/home/mike/.config/xfce4/xfconf/xfce-perchannel-xml/xsettings.xml", O_RDONLY) = 6
open("/usr/local/etc/xdg/xfce4/xfconf/xfce-perchannel-xml/xsettings.xml", O_RDONLY) = 6
So, here it is doing something in the wrong order.
The xsettings.xml file in /usr/local has only the /Net/ThemeName and
IconThemeName.
Dropping that file "fixes" of course the problem.
Regards
Mike
PS: sorry for zsh syntax
More information about the Xfce4-dev
mailing list