redshift icon indicating copy to clipboard operation
redshift copied to clipboard

symbolic link problem with configuration file

Open farvardin opened this issue 2 years ago • 2 comments

Describe the bug It looks like we can't use symbolic links with the configuration file (on Linux Mint 21)

To Reproduce Steps to reproduce the behavior:

I've made a link from my dotfile folder:

ln -s redshift.conf ~/.config/

Then redshift didn't took my changes into account. I've tested it from 2 different computers.

I've copied it instead

rm ~/.config/redshift.conf cp redshift.conf ~/.config/

then my settings are working.

```**Expected behavior**

Redshift conf should work from an original file or from a symbolic link.


**Software versions (please complete the following information):**
 - OS: Linux mint 21
 - Redshift version: redshift 1.12
 - Distribution:  Linux Mint
 - Redshift installed from: apt-get

farvardin avatar Jan 11 '23 20:01 farvardin

just stumbled upon this now. i don't know Mint Linux very well, but if this is Ubuntu/Debian derived, you have to adjust your 'apparmor' settings to allow 'redshift' to read its config file from locations other than '$HOME/.config', and apparmor doesn't allow it to follow symlinks as well. not a bug.

BrokenParity avatar Jul 17 '23 15:07 BrokenParity

well, I've never bothered with AppArmor, I didn't even know it was used outside some servers' scope.

I suppose redshift has made some adjustement to skip AppArmor stuff, because none of my other applications behave this way, I can use symbolic links with a specific dotfiles folder.

It might not be a bug, but it's quite an annoyance, and it doesn't seem very logical to have such a behavior from AppArmor. If it's the default feature of apparmor, then I'll see if I can disable it completely, I don't like when a program make unix things behave unexpected, especially without any clear warning.

farvardin avatar Jul 18 '23 18:07 farvardin