summaryrefslogtreecommitdiffstats
path: root/.local/bin/opout
diff options
context:
space:
mode:
authorKian Kasad <kdkasad@gmail.com>2020-05-30 14:01:18 -0700
committerGitHub <noreply@github.com>2020-05-30 17:01:18 -0400
commit3222354d50c9cc5a50fc78059e69e423a7009d58 (patch)
tree53cd87a34815f7e7b8d8c670777208a728616e2a /.local/bin/opout
parent52d9140820d3e39446cb8414220c9bc5a052216c (diff)
downloadeibhear-3222354d50c9cc5a50fc78059e69e423a7009d58.tar.gz
eibhear-3222354d50c9cc5a50fc78059e69e423a7009d58.tar.zst
eibhear-3222354d50c9cc5a50fc78059e69e423a7009d58.zip
make use of setsid(1)'s `-f` flag (#652)
Co-authored-by: Luke Smith <luke@lukesmith.xyz>
Diffstat (limited to '.local/bin/opout')
-rwxr-xr-x.local/bin/opout6
1 files changed, 3 insertions, 3 deletions
diff --git a/.local/bin/opout b/.local/bin/opout
index 28af763..23f044e 100755
--- a/.local/bin/opout
+++ b/.local/bin/opout
@@ -7,7 +7,7 @@
basename="$(echo "$1" | sed 's/\.[^\/.]*$//')"
case "$1" in
- *.tex|*.m[dse]|*.[rR]md|*.mom|*.[0-9]) setsid xdg-open "$basename".pdf >/dev/null 2>&1 & ;;
- *.html) setsid "$BROWSER" "$basename".html >/dev/null 2>&1 & ;;
- *.sent) setsid sent "$1" >/dev/null 2>&1 & ;;
+ *.tex|*.m[dse]|*.[rR]md|*.mom|*.[0-9]) setsid -f xdg-open "$basename".pdf >/dev/null 2>&1 ;;
+ *.html) setsid -f "$BROWSER" "$basename".html >/dev/null 2>&1 ;;
+ *.sent) setsid -f sent "$1" >/dev/null 2>&1 ;;
esac