! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
xfconf ignored XDG_CONFIG_HOME
Status:
RESOLVED: WORKSFORME

Comments

Description Michael Hall 2009-10-17 18:19:20 CEST
Created attachment 2608 
modified startup script

Even though I overwrote XDG_CONFIG_HOME, and have it exported, xfconf still
saves and reads from $HOME/.config/xfce4/xfconf, other programs like
xfce4-panel use the value in XDG_CONFIG_HOME.
Comment 1 Brian J. Tarricone (not reading bugmail) 2009-10-17 18:34:37 CEST
Setting an explicit XDG_CONFIG_HOME works fine here.  Otherwise the test suite wouldn't work...
Comment 2 Michael Hall 2009-10-17 18:55:13 CEST
Created attachment 2609 
$HOME/.config immediately after login

I have attached a tar of my $HOME/.config immediately after logging in with the startqimo session.  As you can see, there is a .config/qimo and also a .config/xfce4
Comment 3 Michael Hall 2009-10-17 19:06:19 CEST
Also, when I change my desktop settings, they get saved under $HOME/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-desktop.xml
Comment 4 Michael Hall 2009-10-17 19:07:23 CEST
Created attachment 2610 
/etc/xdg/qimo/xfce4/xinitrc

I over-wrote the XDG_CACHE_HOME here also, which works for everything.
Comment 5 Brian J. Tarricone (not reading bugmail) 2009-10-17 19:08:30 CEST
Only reason why that might happen is if xfconfd is already running before you
set XDG_CONFIG_HOME.  It uses the same system functions as the rest of Xfce
does to discover the configuration directories.  If I add a printf when it
starts to list the save location, I get:

brian@volta ~ $ killall xfconfd
brian@volta ~ $ export XDG_CONFIG_HOME=/home/brian/xdg-test/config
brian@volta ~ $ /opt/xfce4-svn/libexec/xfconfd 
save path is: /home/brian/xdg-test/config/xfce4/xfconf/xfce-perchannel-xml/
Comment 6 Michael Hall 2009-10-17 19:17:09 CEST
That looks to be the case, where does xfconfd get called in the startup?
Comment 7 Brian J. Tarricone (not reading bugmail) 2009-10-17 22:43:58 CEST
It isn't; it's started on demand by dbus.
Comment 8 Michael Hall 2009-10-18 01:00:59 CEST
The startqimo script is started by GDM when you log in, is there something before that (in GDM perhaps) that would trigger xfconf through dbus?
Comment 9 Brian J. Tarricone (not reading bugmail) 2009-10-18 01:24:50 CEST
I don't know anything about GDM.

Bug #5878

Reported by:
Michael Hall
Reported on: 2009-10-17
Last modified on: 2009-10-18

People

Assignee:
Brian J. Tarricone (not reading bugmail)
CC List:
0 users

Version

Attachments

modified startup script (2.21 KB, text/plain)
2009-10-17 18:19 CEST , Michael Hall
no flags
$HOME/.config immediately after login (40.00 KB, application/x-tar)
2009-10-17 18:55 CEST , Michael Hall
no flags
/etc/xdg/qimo/xfce4/xinitrc (6.96 KB, application/octet-stream)
2009-10-17 19:07 CEST , Michael Hall
no flags

Additional information