The previous logic leaves a shell running for the duration that the
launched application runs.
This changes it so that the only application that is left running is
the launched application.

In addition, it can now handle launching applications with spaces in
the filename.
---
 dmenu_run | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dmenu_run b/dmenu_run
index 834ede5..191d4db 100755
--- a/dmenu_run
+++ b/dmenu_run
@@ -1,2 +1,2 @@
 #!/bin/sh
-dmenu_path | dmenu "$@" | ${SHELL:-"/bin/sh"} &
+exec "$(dmenu_path | dmenu "$@")"
-- 
1.8.2.1


Reply via email to