Created
May 31, 2014 16:39
-
-
Save khurshid-alam/9d46ad708a8d5df93ae7 to your computer and use it in GitHub Desktop.
X-Scheme-Handler app://
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 | |
if [ "$@" != "app://" ]; then | |
app=$(echo $@ | sed -r 's/app:\/\///g') | |
nohup $app >/dev/null 2>&1 & | |
else | |
nohup gnome-terminal >/dev/null 2>&1 & | |
fi | |
exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment