Closed andornaut closed 2 years ago
I had the same issue but in the end the problem was not with Redshift but with an Apparmor profile for Redshift that was blocking access to files outside of the default Redshift config directory. The solution is to create a local override of the profile:
sudo vi /etc/apparmor.d/local/usr.bin.redshift
add this line:
owner @{HOME}/.../redshift.conf r,
(you need to put the correct path above) Then reload Apparmor configuration:
sudo systemctl reload apparmor
I tested this on Debian but it should work also for Ubuntu.
Thanks @mkapalka!
I had the same issue but in the end the problem was not with Redshift but with an Apparmor profile for Redshift that was blocking access to files outside of the default Redshift config directory. The solution is to create a local override of the profile:
sudo vi /etc/apparmor.d/local/usr.bin.redshift
add this line:
owner @{HOME}/.../redshift.conf r,
(you need to put the correct path above) Then reload Apparmor configuration:
sudo systemctl reload apparmor
I tested this on Debian but it should work also for Ubuntu.
For some reason Reloading apparmor didn't work I had to reboot my system to make the changes take effect Any explanations why?
Describe the bug A clear and concise description of what the bug is.
To Reproduce Steps to reproduce the behavior:
ln -s $PATH_TO_REDSHIFT_CONFIG ~/.config/redshift.conf
redshift -v
Expected The settings in the configuration
~/.config/redshift.conf
are used. Actual The configuration file is ignored.Context I use a dotfile manager named "gog" to save redshift.conf to
~/.local/share/gog/.../redshift.conf
, which is then symlinked to~/.config/redshift.conf
. This used to work, but upon upgrading redshift recently this no longer works as expected. I was using the version of redshift distributed with Ubuntu 20.04, and am now using the version distributed with 21.10:1.12-4.2ubuntu1
.Example where the configuration file is ignored.
I use the manual location provider, not geoclue2. This symlink scenario does not work.
On the otherhand, the configuration file is used when the configuration file is not a symlink:
The no-symlink scenario above works as expected.
Additionally, using the
-c
flag doesn't appear to work at all:Software versions (please complete the following information):
redshift 1.12