Redshift-gtk now working on startup

Greetings to Ubuntu MATE Community!

I installed 16.04.1 LTS recently and have been very happy about this distribution. The only problem I am having right now is Redshift-gtk on startup. Sometimes it works, but sometimes it doesn’t. It seems random to me. Any idea how to track down the problem?

Thanks!

Hello @Dingo1213

What happens if you upgrade to 16.10, is it still partly working?

Cheers,

1 Like

Hi @Dingo1213,

Chances are it starts up before something it needs - sometimes it does, sometimes it doesn’t. Adding a delay of just a few seconds will often take care of it.

You can see the startup entry in:
System -> Preferences -> Personal -> Startup Applications

Scrioll down and select Redshift then press Edit. In the Command Field it will say:

redshift-gtk

Change that to say exactly this:

/bin/sh -c "/bin/sleep 5; redshift-gtk &"

Then press Save.

I know… Startup apps are a royal pain to add a simple delay and I personally use a different technique. I know this delay works with 16.04 because I checked it. I added 5 seconds with sleep 5 but even as short as 1 second could help or you may have to increase to 10 seconds all depending on your system.

Any issues put back the original Command field. Does this help?

3 Likes

Thank you! It works!

1 Like

on Ubuntu 16 I pressed the home or windows key on the keyboard and typed “startup” to find the startup program. In there I added an item which runs the command “redshift” simply­.

Welcome to the forum, @brampta!