Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
If gtk-redshift crashes at Unity's startup because no network connection is available, you can start it with this script instead, to keep trying every 10 seconds until it succeeds.
#!/usr/bin/env bash
while true; do
pgrep redshift && exit # Already running.
gtk-redshift
# Died? Check again after 10 seconds.
sleep 10
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment