diff options
| author | Moritz Meißelbach <arbelzapf@gmail.com> | 2019-11-23 22:03:00 +0100 |
|---|---|---|
| committer | Moritz Meißelbach <arbelzapf@gmail.com> | 2019-11-23 22:03:00 +0100 |
| commit | 65aaeb48e4d7589c50e13e422442a684f9d5263d (patch) | |
| tree | 237d944586bd9e422859ce0dc06bd887ec740f36 | |
| parent | 8aa7fe6f22f022042a12380f7c01668499f871ed (diff) | |
| download | sway-launcher-desktop-65aaeb48e4d7589c50e13e422442a684f9d5263d.tar.gz sway-launcher-desktop-65aaeb48e4d7589c50e13e422442a684f9d5263d.zip | |
Run launch command in sub-shell, allowing the script to exit normally and run trapped cleanup tasks. Fixes #11
| -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 2441cbe..eb146d9 100755 --- a/sway-launcher-desktop.sh +++ b/sway-launcher-desktop.sh @@ -209,4 +209,4 @@ command) ;; esac -exec setsid /bin/sh -c "$command" +(exec setsid /bin/sh -c "$command" &) |
