Browser options

This commit is contained in:
Bob Mottram 2016-09-08 23:47:42 +01:00
parent c3cecdad1f
commit c379354bbe
No known key found for this signature in database
GPG Key ID: 0452CC7CEA982E38
1 changed files with 2 additions and 1 deletions

View File

@ -35,6 +35,7 @@ IPFS_URL='http://127.0.0.1:8080/ipns'
# The browser application to use
BROWSER=midori
BROWSER_OPTIONS='--plain -p'
# An optional suffix to be appended to the URL
SUFFIX=$1
@ -75,7 +76,7 @@ case $sel in
clear
echo $'Opening browser. Please wait...'
pkill $BROWSER
setsid sh -c "$BROWSER $IPFS_FULL_URL$SUFFIX" > /dev/null 2>&1 < /dev/null &
setsid sh -c "$BROWSER $BROWSER_OPTIONS $IPFS_FULL_URL$SUFFIX" > /dev/null 2>&1 < /dev/null &
fi
else
exit 1