Xfce Forum

Sub domains
 

You are not logged in.

#1 2010-12-19 01:51:06

boro
Member
Registered: 2010-12-19
Posts: 3

xfsettingsd not passing configuration correctly to xrdb?

I am using Xfce 4.6.2 on 32-bit Linux. I stumbled to a problem with CursorThemeName not being correctly passed to xrdb. After some testing I found out, that the problem actually affects all configuration that is being passed to xrdb by xfsettingsd.

The files
  ~/.config/xfce4/Xcursor.xrdb
  ~/.config/xfce4/Xft.xrdb
are being created correctly, but the problem seems to be in the way they are being passed to xrdb. Xfsettingsd creates the files and then passes them to xrdb by running "xrdb -nocpp -merge <filename>". The command xrdb is executed asynchronously using g_spawn_command_line_async. Because of this, xfsettingsd may detach before it has set up the configuration. Other parts of xfce4 may even get started without them seeing all the configuration. In some situations some of the configuration didn't appear with "xrdb -query" at all, which would indicate some sort of race condition.

A short sh script I used for testing:

xfsettingsd
while true; do
    xrdb -query
    sleep 0.1
done

Fixing it requires a bit too much work for me right now, so I'm going to work around it by merging the created files using xrdb once again after xfsettingsd is started. Anyone else noticed this?

Offline

#2 2010-12-19 01:54:48

boro
Member
Registered: 2010-12-19
Posts: 3

Re: xfsettingsd not passing configuration correctly to xrdb?

The bug seems to be alike with the one reported here: http://bugs.gentoo.org/show_bug.cgi?id=293426

Offline

#3 2010-12-19 02:02:52

boro
Member
Registered: 2010-12-19
Posts: 3

Re: xfsettingsd not passing configuration correctly to xrdb?

The same bug exists in the development version too (as of 2010-12-19):
http://git.xfce.org/xfce/xfce4-settings … registry.c

It should be trivial to write a fix based on
http://git.gnome.org/browse/gnome-setti … b86148388a

I'll see if I have some spare time tomorrow to write a patch for it.

EDIT: Created http://bugzilla.xfce.org/show_bug.cgi?id=7014

Last edited by boro (2010-12-19 16:16:50)

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.012 seconds, 7 queries executed - Memory usage: 519.09 KiB (Peak: 520.99 KiB) ]