! 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 !
xfce does not honor symlinks in .config
Status:
RESOLVED: WONTFIX
Product:
Libxfce4util
Component:
General

Comments

Description Hadmut Danisch 2006-09-01 08:57:00 CEST
Hi,

I tried to share some of the xfce config files over several of my accounts in order to have the same settings everywhere. I therefore created symlinks in .config/xfce4/ and .config/xfce4/mcs_settings . 

Unfortunately, whenever anything is changed in the xfce config, xfce removes the config file (and thus the symlink) and replaces it with a new file, thus destroying symlinks.

regards
Hadmut
Comment 1 Benedikt Meurer editbugs 2006-09-01 12:07:00 CEST
Of course. Config files are written atomically, which means:

(1) write_to(temp_file)
(2) rename(temp_file, config_file)
(3) unlink(temp_file)
Comment 2 Hadmut Danisch 2006-09-06 12:54:27 CEST
Yup. But that's the problem, not the solution.

(btw: that's wrong. The way you describe it step 3 is pointless)

The config files should honor links and do the procedure at the place where the links points to.

E.g. if the link points to 
/somewhere/file  then the write/rename should be done in /somewhere/, not in ~/.config

regards
Hadmut
Comment 3 Benedikt Meurer editbugs 2006-09-06 14:17:40 CEST
Nope, symlinks for config files are not really that important. More important is that the files are written atomically to be crash safe and esp. avoid locking/race conditions when more than one program writes to a config file.

I don't really see the need for your setup anyway. How often do you change your config? Once per hour? If not, you'll usually setup your desktop once and afterwards simply copy the files over to the other account. Voila.

If you want to permanently share all configurations between several accounts on the same machine, you could also just set XDG_CONFIG_HOME to point to a shared folder for configs.

Bug #2248

Reported by:
Hadmut Danisch
Reported on: 2006-09-01
Last modified on: 2013-03-19

People

Assignee:
Xfce Bug Triage
CC List:
1 user

Version

Attachments

Additional information