From c3cecdad1f00516401525813f7c15d04c125aed1 Mon Sep 17 00:00:00 2001
From: Bob Mottram <bob@robotics.uk.to>
Date: Thu, 8 Sep 2016 23:38:47 +0100
Subject: [PATCH] Run as detached process

---
 src/freedombone-mesh-visit-site | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/freedombone-mesh-visit-site b/src/freedombone-mesh-visit-site
index 9b9297eb9..db1ffe1f6 100755
--- a/src/freedombone-mesh-visit-site
+++ b/src/freedombone-mesh-visit-site
@@ -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
-- 
GitLab