On Thu 08 Dec 2011 09:48:07 PM PST, Kaibin Li wrote:
> In current hg tip, after launching a program from dmenu, the process
> of dmenu_run will not exit until the program launched by it exits.

Good find!  Here is my patch to fix the problem.  Cheers.

diff --git a/dmenu_run b/dmenu_run
index 35a4db3..c5485e7 100755
--- a/dmenu_run
+++ b/dmenu_run
@@ -6,10 +6,11 @@ else
        cache=$HOME/.dmenu_cache
 fi
 (
+       echo -n "exec "
        IFS=:
        if [ "`ls -dt $PATH "$cache" | head -n 1`" != "$cache" ]; then
                lsx $PATH | sort -u | tee "$cache" | dmenu "$@"
        else
                dmenu "$@" < "$cache"
        fi
-) | exec ${SHELL:-"/bin/sh"}
+) | exec ${SHELL:-"/bin/sh"} &

-- 
If the path be beautiful, let us not ask where it leads.
                -- Anatole France

Reply via email to