Send GUI processes to background

Use disown to keep the processs alive.

Fixes https://github.com/sayanarijit/xplr/issues/616
pull/617/head
Arijit Basu 1 year ago
parent 912807ce25
commit 5d8004fd9e
No known key found for this signature in database
GPG Key ID: 0F8EF5258DC38077

@ -12,9 +12,7 @@ version="$(xplr --version | awk '{print $2}')"
echo "version = '${version:?}'" > ~/.config/xplr/init.lua
```
Then
**[copy from here][2]**
and remove / comment out what you don't want to customize.
Then **[copy from here][2]** and remove / comment out what you don't want to customize.
## Run

@ -1818,7 +1818,8 @@ xplr.config.modes.builtin.go_to = {
fi
fi
(while IFS= read -r -d '' PTH; do
$OPENER "${PTH:?}" > /dev/null 2>&1
$OPENER "${PTH:?}" > /dev/null 2>&1 &
disown
done < "${XPLR_PIPE_RESULT_OUT:?}")
]===],
},
@ -2705,21 +2706,13 @@ xplr.config.modes.builtin.edit_permissions = {
["m"] = {
help = "max",
messages = {
{
BashExecSilently0 = [===[
"$XPLR" -m 'SetInputBuffer: %q' "777"
]===],
},
{ SetInputBuffer = "777" },
},
},
["M"] = {
help = "min",
messages = {
{
BashExecSilently0 = [===[
"$XPLR" -m 'SetInputBuffer: %q' "000"
]===],
},
{ SetInputBuffer = "000" },
},
},
["ctrl-r"] = {

Loading…
Cancel
Save