Skip to content

Instantly share code, notes, and snippets.

@igorrs
Created March 11, 2014 05:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save igorrs/9480073 to your computer and use it in GitHub Desktop.
Save igorrs/9480073 to your computer and use it in GitHub Desktop.
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