commit 6cff699f279e2be139416234fbc0fcf2c7941538 parent c17cd2c7527609bc9eed00bf2ab429b5f2bd6121 Author: Anders Damsgaard <anders@adamsgaard.dk> Date: Thu, 26 Sep 2019 10:00:40 +0200 Update fffs, do not run surf in firejail Diffstat:
M | .local/bin/surf-open.sh | | | 10 | ++++++---- |
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/.local/bin/surf-open.sh b/.local/bin/surf-open.sh @@ -1,8 +1,8 @@ #!/bin/sh -#prefix="" +prefix="" #prefix="torsocks" -prefix="firejail --profile=$HOME/.config/firejail/surf.config" +#prefix="firejail --profile=$HOME/.config/firejail/surf.config" xidfile="/tmp/tabbed-surf-$(whoami).xid" uri="" @@ -12,11 +12,13 @@ command -v surf-clean-cookies >/dev/null 2>&1 && (surf-clean-cookies || :) runtabbed() { echo "starting tabbed" - setsid tabbed -dn tabbed-surf -r 2 >"$xidfile" 2>/dev/null + tabbed -dn tabbed-surf -r 2 >"$xidfile" 2>/dev/null & + disown sleep 0.1 } opensurf() { - setsid $prefix surf -e "$xid" "$uri" >/dev/null 2>&1 & + $prefix surf -e "$xid" "$uri" >/dev/null 2>&1 & + disown } [ ! -r "$xidfile" ] && runtabbed