commit fdbd66f4c247a9cfe1397b0a752ac0141c6da216 parent 868eb693af36369d75d0d7aeba01533c3aadfc77 Author: Anders Damsgaard <anders@adamsgaard.dk> Date: Wed, 12 Jun 2019 19:07:19 +0200 Spawn new surf processes with setsid Diffstat:
M | .local/bin/surf-open.sh | | | 4 | ++-- |
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.local/bin/surf-open.sh b/.local/bin/surf-open.sh @@ -12,11 +12,11 @@ command -v surf-clean-cookies >/dev/null 2>&1 && (surf-clean-cookies || :) runtabbed() { echo "starting tabbed" - nohup tabbed -dn tabbed-surf -r 2 >"$xidfile" 2>/dev/null & + setsid tabbed -dn tabbed-surf -r 2 >"$xidfile" 2>/dev/null sleep 0.1 } opensurf() { - nohup $prefix surf -e "$xid" "$uri" >/dev/null 2>&1 & + setsid $prefix surf -e "$xid" "$uri" >/dev/null 2>&1 & } [ ! -r "$xidfile" ] && runtabbed