Created
March 11, 2014 05:41
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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