diff options
| author | Moritz Meißelbach <arbelzapf@gmail.com> | 2019-12-15 21:54:50 +0100 |
|---|---|---|
| committer | Moritz Meißelbach <arbelzapf@gmail.com> | 2019-12-15 21:54:50 +0100 |
| commit | e45f50830062ec5dcfd1325c511051b039eea634 (patch) | |
| tree | a4d48b3ed83aaffab33b9e6fe2895be92589ae1f | |
| parent | bb222ad4b33c97cf43bb5f7c76b57426074834fa (diff) | |
| download | sway-launcher-desktop-e45f50830062ec5dcfd1325c511051b039eea634.tar.gz sway-launcher-desktop-e45f50830062ec5dcfd1325c511051b039eea634.zip | |
Silence all output of selected command. This seems to be needed for some terminal emulators to completely detach the command. Fixes #13
| -rwxr-xr-x | sway-launcher-desktop.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway-launcher-desktop.sh b/sway-launcher-desktop.sh index f861177..59cce1b 100755 --- a/sway-launcher-desktop.sh +++ b/sway-launcher-desktop.sh @@ -222,4 +222,4 @@ readarray -d ${DEL} -t PROVIDER_ARGS <<<${PROVIDERS[${PARAMS[1]}]} # Substitute {1}, {2} etc with the correct values COMMAND=${PROVIDER_ARGS[2]//\{1\}/${PARAMS[0]}} COMMAND=${COMMAND//\{2\}/${PARAMS[3]}} -(exec setsid /bin/sh -c "${COMMAND}" &) +(exec setsid /bin/sh -c "${COMMAND}" &>/dev/null &) |
