Open in a browser

This commit is contained in:
Bob Mottram 2015-09-03 18:50:29 +01:00
parent 60e24314a2
commit 9fad9e604f
1 changed files with 7 additions and 1 deletions

View File

@ -304,7 +304,13 @@ if [ $existing_zeronet -lt "2" ]; then
python zeronet.py &
fi
if which xdg-open > /dev/null; then
if which firefox > /dev/null; then
firefox $ZERONET_INDEX
elif which chrome > /dev/null; then
chrome $ZERONET_INDEX
elif which chromium > /dev/null; then
chromium $ZERONET_INDEX
elif which xdg-open > /dev/null; then
xdg-open $ZERONET_INDEX
elif which gnome-open > /dev/null; then
gnome-open $ZERONET_INDEX