diff --git a/editgraph b/editgraph index 832a8cf..0bd90e5 100755 --- a/editgraph +++ b/editgraph @@ -1,8 +1,13 @@ #!/bin/bash + which open if [ $? == 0 ] then - open -a 'Google Chrome' https://controlcore-project.github.io/concore-editor/ + if [[ "$OSTYPE" =~ ^darwin ]]; then + open -a 'Google Chrome' https://controlcore-project.github.io/concore-editor/ + elif [[ "$OSTYPE" =~ ^linux ]]; then + xdg-open https://controlcore-project.github.io/concore-editor/ + fi else which xdg-open if [ $? == 0 ]