Created
November 9, 2008 03:57
-
-
Save oppara/23192 to your computer and use it in GitHub Desktop.
bash: run firefox
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
#!/bin/bash | |
FF=`ps aux | grep firefox-bin | wc -l` | |
if [ "$FF" == 1 ]; then | |
env DISPLAY=:0. zenity --info --text "I run Firefox" && firefox | |
else | |
env DISPLAY=:0. zenity --info --text "Firefox is running" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment