make use of setsid(1)'s -f flag (#652)

Co-authored-by: Luke Smith <luke@lukesmith.xyz>
This commit is contained in:
Kian Kasad
2020-05-30 14:01:18 -07:00
committed by GitHub
parent 52d9140820
commit 3222354d50
19 changed files with 34 additions and 37 deletions

View File

@@ -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