dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit 3572cae0176b3a4dfe203f5a34e6258e8a90f36f
parent 44faa74e05b7e6f21305c8cadcbe446d2cc538e8
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Thu, 26 Sep 2019 10:14:35 +0200

Fix process forking on OpenBSD

Diffstat:
M.local/bin/surf-open.sh | 8+++-----
1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/.local/bin/surf-open.sh b/.local/bin/surf-open.sh @@ -12,19 +12,17 @@ command -v surf-clean-cookies >/dev/null 2>&1 && (surf-clean-cookies || :) runtabbed() { echo "starting tabbed" - tabbed -dn tabbed-surf -r 2 >"$xidfile" 2>/dev/null & - disown + nohup tabbed -dn tabbed-surf -r 2 >"$xidfile" 2>/dev/null & sleep 0.1 } opensurf() { - $prefix surf -e "$xid" "$uri" >/dev/null 2>&1 & - disown + nohup $prefix surf -e "$xid" "$uri" >/dev/null 2>&1 & } [ ! -r "$xidfile" ] && runtabbed xid=$(cat "$xidfile") if ! xprop -id "$xid" >/dev/null 2>&1; then - runtabbed + runtabbed fi opensurf