0

I'm running KDE Neon 5.14 (based on Ubuntu 18.04) and KDE Plasma 5.14.2.

A command redshift (/usr/bin/redshift) is provided to adapt the screen colors to red tones for evening/night. I can successfully run it on a terminal emulator, but not in a cronjob. This line from the user's crontab

15 19 * * * /usr/bin/redshift

has no effect.

What could be the reason? And how to correctly run redshift also as a cronjob?

BowPark
  • 4,811
  • 12
  • 47
  • 74
  • See also: https://unix.stackexchange.com/questions/171744/changing-users-wallpaper-via-system-crontab – Jeff Schaller Nov 07 '18 at 19:58
  • @JeffSchaller It works with `DISPLAY:=0.0`. Thank you! – BowPark Nov 07 '18 at 21:25
  • Even if [this question](https://unix.stackexchange.com/questions/193827/what-is-display-0) and also [this question](https://unix.stackexchange.com/questions/171744/changing-users-wallpaper-via-system-crontab) are *related* to this problem, neither of them directly provides the answer needed here, which is: `DISPLAY:=0.0` must be set in the `env` of the cronjob. – BowPark Nov 07 '18 at 22:57

0 Answers0