-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make the config editor symlink friendly #740
Comments
Well, this should probably be reported upstream as we don't manipulate config files directly but using the Qt's |
lxqt-config or LXQt doesn't; |
As far as I remember, when writing to a config file, |
Alright, thanks for giving me a start. @tsujan, I just want to confirm. |
Yes. What I said was in my memory; didn't check Qt's source. If you want to know exactly what happens, you'll need to read Qt → Anyway, LXQt doesn't reinvent the wheel. In most places, it uses |
Too bad they decided not to go with it. |
I think config files are too important to depend on arbitrary files (symlinks). Although I've seen that Qt devs have sometime made bad decisions, IMO, this isn't one of them: it's the best way of handling config files. |
symlinks seem to work for me now. I am using Arch linux. |
When you change a setting, lxqt-config seems to delete any existing config, then make a new one, rather than editing the existing config file in place. Even if the file is a symlink, the editor replaces the symlink rather than following it and replacing the file.
I am using a symlink manager (GNU stow) in order to sync my desktop configuration across the devices I use. So the above behavior is a problem.
I am testing this on archlinux.
Expected Behavior
Follow the symlink, replace the actual file with the new config file.
Both the initial and the final structure must look like this.
Current Behavior
The symlink is being replaced instead.
This is how it looks after the replacement.
Possible Solution
Follow the symlink chain, then replace the actual file (either in-place or by replacing).
Steps to Reproduce (for bugs)
Context
Using dotfiles to sync config across linux machines.
System Information
The text was updated successfully, but these errors were encountered: