diff options
| author | Moritz Meißelbach <arbelzapf@gmail.com> | 2020-09-01 22:49:09 +0200 |
|---|---|---|
| committer | Moritz Meißelbach <arbelzapf@gmail.com> | 2020-09-01 22:49:09 +0200 |
| commit | fe2e71ed5301234433db43dfa0dc8d688aa645c2 (patch) | |
| tree | e929d5f485999819181b3688a268ea412b6fd4a6 | |
| parent | c3c1e932c4b6f7a276724c4d6d02af6ed23e6f28 (diff) | |
| download | sway-launcher-desktop-fe2e71ed5301234433db43dfa0dc8d688aa645c2.tar.gz sway-launcher-desktop-fe2e71ed5301234433db43dfa0dc8d688aa645c2.zip | |
#22 try different launch command as discussed in https://stackoverflow.com/questions/10247721/on-writing-a-linux-shell-script-to-safely-detach-programs-from-a-terminal
| -rwxr-xr-x | sway-launcher-desktop.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sway-launcher-desktop.sh b/sway-launcher-desktop.sh index 8e0ce16..752e03b 100755 --- a/sway-launcher-desktop.sh +++ b/sway-launcher-desktop.sh @@ -285,4 +285,5 @@ COMMAND=${PROVIDER_ARGS[2]//\{1\}/${PARAMS[0]}} COMMAND=${COMMAND//\{2\}/${PARAMS[3]}} COMMAND=${COMMAND%%[[:space:]]} echo "Launching command: ${COMMAND}" >&3 -(exec setsid /bin/sh -c "${COMMAND}" &>/dev/null &) +setsid /bin/sh -c "${COMMAND}" >& /dev/null < /dev/null & +sleep 0.01 |
