kupfer doesn't follow symlinks when saving the configuration file

Bug #1394152 reported by Benjamin Albrecht
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kupfer
New
Undecided
Unassigned

Bug Description

I manage my kupfer.cfg alongside other dotfiles with homeshick. [1]

When changing settings using the preferences menu, the symbolic link that points from ~/.config/kupfer/kupfer.cfg to the file in my dotfiles repository gets overwritten by the newly saved configuration file

As a result, the updated settings don't get written to the dotfiles repository.

Attached is a patch, that fixes this behaviour, simply by calling os.path.realpath() [2] on the path of the config file before renaming the temporary file.

[1] https://github.com/andsens/homeshick
[2] https://docs.python.org/2/library/os.path.html#os.path.realpath

Revision history for this message
Benjamin Albrecht (grizzu) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.