mention setsid in the documentation

Related #148 and #233
This commit is contained in:
Gokcehan 2019-10-07 20:23:08 +03:00
parent cfc9e355b3
commit ff4c36565c
4 changed files with 9 additions and 1 deletions

3
doc.go
View File

@ -638,6 +638,9 @@ You may want to use either file extensions or mime types from 'file' command:
esac esac
}} }}
You may want to use 'setsid' before your opener command to have persistent
processes that continue to run after lf quits.
Following command is provided by default: Following command is provided by default:
cmd open &$OPENER $f cmd open &$OPENER $f

View File

@ -666,6 +666,9 @@ command:
esac esac
}} }}
You may want to use 'setsid' before your opener command to have persistent
processes that continue to run after lf quits.
Following command is provided by default: Following command is provided by default:
cmd open &$OPENER $f cmd open &$OPENER $f

View File

@ -38,7 +38,7 @@ map O $mimeopen --ask $f
cmd open ${{ cmd open ${{
case $(file --mime-type $f -b) in case $(file --mime-type $f -b) in
text/*) $EDITOR $fx;; text/*) $EDITOR $fx;;
*) for f in $fx; do $OPENER $f > /dev/null 2> /dev/null & done;; *) for f in $fx; do setsid $OPENER $f > /dev/null 2> /dev/null & done;;
esac esac
}} }}

2
lf.1
View File

@ -601,6 +601,8 @@ You may want to use either file extensions or mime types from 'file' command:
}} }}
.EE .EE
.PP .PP
You may want to use 'setsid' before your opener command to have persistent processes that continue to run after lf quits.
.PP
Following command is provided by default: Following command is provided by default:
.PP .PP
.EX .EX