diff --git a/doc.go b/doc.go index 96e4417..350f4dd 100644 --- a/doc.go +++ b/doc.go @@ -638,6 +638,9 @@ You may want to use either file extensions or mime types from 'file' command: 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: cmd open &$OPENER $f diff --git a/docstring.go b/docstring.go index 374e8c9..f9d5111 100644 --- a/docstring.go +++ b/docstring.go @@ -666,6 +666,9 @@ command: 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: cmd open &$OPENER $f diff --git a/etc/lfrc.example b/etc/lfrc.example index 41a957b..3904ad8 100644 --- a/etc/lfrc.example +++ b/etc/lfrc.example @@ -38,7 +38,7 @@ map O $mimeopen --ask $f cmd open ${{ case $(file --mime-type $f -b) in 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 }} diff --git a/lf.1 b/lf.1 index 3553cbd..1f733aa 100644 --- a/lf.1 +++ b/lf.1 @@ -601,6 +601,8 @@ You may want to use either file extensions or mime types from 'file' command: }} .EE .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: .PP .EX