Skip to content

Instantly share code, notes, and snippets.

@khurshid-alam
Created May 31, 2014 16:39
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 khurshid-alam/9d46ad708a8d5df93ae7 to your computer and use it in GitHub Desktop.
Save khurshid-alam/9d46ad708a8d5df93ae7 to your computer and use it in GitHub Desktop.
X-Scheme-Handler app://
#!/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