Skip to content
Snippets Groups Projects
Commit c184518d authored by tjc's avatar tjc
Browse files

use open command for MacOSX

git-svn-id: svn+ssh://svn.internal.sanger.ac.uk/repos/svn/pathsoft/artemis/trunk@5506 ee4ac58c-ac51-4696-9907-e4b3aa274f04
parent 2209c189
No related branches found
No related tags found
No related merge requests found
...@@ -17,6 +17,9 @@ then ...@@ -17,6 +17,9 @@ then
elif [ -f "/usr/bin/mozilla" ] elif [ -f "/usr/bin/mozilla" ]
then then
NETSCAPE=/usr/bin/mozilla NETSCAPE=/usr/bin/mozilla
elif [ -f "/usr/bin/open" ]
then
NETSCAPE=/usr/bin/open
elif [ -f "/Applications/Safari.app/Contents/MacOS/Safari" ] elif [ -f "/Applications/Safari.app/Contents/MacOS/Safari" ]
then then
NETSCAPE=/Applications/Safari.app/Contents/MacOS/Safari NETSCAPE=/Applications/Safari.app/Contents/MacOS/Safari
...@@ -229,7 +232,11 @@ echo "rm -f $new_file > /dev/null 2>&1" | at now + 12 hours ...@@ -229,7 +232,11 @@ echo "rm -f $new_file > /dev/null 2>&1" | at now + 12 hours
# MAC OS X => Safari browser # MAC OS X => Safari browser
# The command then is the following # The command then is the following
if [ -f "/Applications/Safari.app/Contents/MacOS/Safari" ] if [ -f "/usr/bin/open" ]
then
/usr/bin/open $new_file
exit 0
elif [ -f "/Applications/Safari.app/Contents/MacOS/Safari" ]
then then
if $NETSCAPE $new_file if $NETSCAPE $new_file
then then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment