Run as detached process

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

View File

@ -74,7 +74,8 @@ case $sel in
IPFS_FULL_URL=${IPFS_URL}/$(cat "$IPFS_USERS_FILE" | grep $TOX_ID | head -n 1 | awk -F ':' '{print $2}')
clear
echo $'Opening browser. Please wait...'
$BROWSER $IPFS_FULL_URL$SUFFIX &
pkill $BROWSER
setsid sh -c "$BROWSER $IPFS_FULL_URL$SUFFIX" > /dev/null 2>&1 < /dev/null &
fi
else
exit 1