From 65aaeb48e4d7589c50e13e422442a684f9d5263d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20Mei=C3=9Felbach?= Date: Sat, 23 Nov 2019 22:03:00 +0100 Subject: Run launch command in sub-shell, allowing the script to exit normally and run trapped cleanup tasks. Fixes #11 --- sway-launcher-desktop.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sway-launcher-desktop.sh') 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" &) -- cgit v1.2.3