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

fix to use x-www-browser to get users default browser

git-svn-id: svn+ssh://svn.internal.sanger.ac.uk/repos/svn/pathsoft/artemis/trunk@9044 ee4ac58c-ac51-4696-9907-e4b3aa274f04
parent f79ee069
No related branches found
No related tags found
No related merge requests found
......@@ -11,29 +11,22 @@
# If you are under KDE, you should use Konqueror then
# If you are under MAC OS X, use Safari
if [ -f "/usr/bin/X11/real-netscape" ]
then
NETSCAPE=/usr/bin/X11/real-netscape
elif [ -f "/usr/bin/mozilla" ]
then
NETSCAPE=/usr/bin/mozilla
elif [ -f "/usr/bin/open" ]
then
if [ `uname` = Darwin ]; then
NETSCAPE=/usr/bin/open
elif [ -f "/Applications/Safari.app/Contents/MacOS/Safari" ]
then
NETSCAPE=/Applications/Safari.app/Contents/MacOS/Safari
elif [ -f "/Applications/Camino.app/Contents/MacOS/Camino" ]
then
NETSCAPE=/Applications/Camino.app/Contents/MacOS/Camino
else
for f in /usr/bin/x-www-browser \
/usr/bin/X11/real-netscape \
/usr/bin/firefox \
/usr/bin/iceweasel \
/usr/bin/mozilla; do
if [ -f $f ]; then
NETSCAPE=$f
break
fi
done
fi
#NETSCAPE=/usr/bin/X11/real-netscape
#NETSCAPE=/usr/bin/mozilla
# MAC OS X
# NETSCAPE=/Applications/Safari.app/Contents/MacOS/Safari
if [ -f "$DIANA_ENVIRONMENT_FILE" ]
then
. $DIANA_ENVIRONMENT_FILE
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment