redshift
redshift copied to clipboard
redshift-gtk doesn't read conf files at log-in
I have checked the FAQ and open issues, and I don't think my issue is exactly mentioned there, since it is not because I'm using the ~/.config/redshift/redshift.conf
path.
- When run from terminal
redshift-gtk -c ~/.config/redshift.conf
it works fine - When I run the same command from my WM (bspwmrc) it works fine
- When run by loggin in from
~/.config/autostart
(usingdex
) it says "no such file or directory, unable to load the file"
Here is my .desktop
file:
[Desktop Entry]
Version=1.0
Name=Redshift
Exec=redshift-gtk -c ~/.config/redshift.conf
Icon=redshift
Terminal=false
Type=Application
Categories=Utility;
StartupNotify=true
Hidden=false
X-GNOME-Autostart-enabled=true
Expected behavior
Being able to load it at start using dex
as any of my other autostart .desktop files.
dex -a -s /etc/xdg/autostart/:~/.config/autostart/
Error output/logs/screenshots error.png
Software versions (please complete the following information):
- OS: Debian 11 stable
- Redshift version: redshift 1.12
- Redshift installed from: regular repositories using
apt
Others
If you are wondering why I don't just run it from my bspwmrc it is because it creates by default a redshift-gkt.desktop
file when it launches, so next time I restart my WM or log-out&back in, I get the error again.
For now I commented out the "Exec=" line on the desktop file, so it doesn't create another one and it runs just from my window manager startup programs, but since it creates a autostart entry on its own, I would like to know why it can't read the file, and I would like to use it, so I also get it on other WMs and x11 DEs from that autostart .desktop file.
This is most likely because the ~
is not expanded in your .desktop
file; put the complete path there and it should work.