From 4e708b0a6ee6255ea7fc0b8d13568ffd802aa648 Mon Sep 17 00:00:00 2001 From: Pradeeban Kathiravelu Date: Wed, 11 Jan 2023 16:05:29 -0500 Subject: [PATCH 1/2] Add changes proposed by @shivangvijay --- editgraph | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/editgraph b/editgraph index 832a8cf..163cd6c 100755 --- a/editgraph +++ b/editgraph @@ -2,7 +2,11 @@ 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 ] From c141bbaa0c730ee7d38360362a1fd6c51635d39a Mon Sep 17 00:00:00 2001 From: Pradeeban Kathiravelu Date: Wed, 11 Jan 2023 16:27:06 -0500 Subject: [PATCH 2/2] Fix editgraph --- editgraph | 1 + 1 file changed, 1 insertion(+) diff --git a/editgraph b/editgraph index 163cd6c..0bd90e5 100755 --- a/editgraph +++ b/editgraph @@ -1,4 +1,5 @@ #!/bin/bash + which open if [ $? == 0 ] then