X-Git-Url: https://git.danieliu.xyz/?p=dmenu.git;a=blobdiff_plain;f=dmenu_run;h=834ede54fc6f465e45ab9a0930f49b6566201fd9;hp=21dc72b5d4a9415ef0a6fd2ab12bef14fb046ef8;hb=HEAD;hpb=ca7ef6d2c901b2f302e735da369b730edb3575cf diff --git a/dmenu_run b/dmenu_run index 21dc72b..834ede5 100755 --- a/dmenu_run +++ b/dmenu_run @@ -1,12 +1,2 @@ #!/bin/sh -CACHE=${XDG_CACHE_HOME:-"$HOME/.cache"}/dmenu_run -if [ ! -d "`dirname "$CACHE"`" ]; then - CACHE=$HOME/.dmenu_cache -fi -( - IFS=: - if test "`ls -dt $PATH "$CACHE" 2> /dev/null | sed 1q`" != "$CACHE"; then - lsx $PATH | sort -u > "$CACHE" - fi -) -cmd=`dmenu "$@" < "$CACHE"` && exec sh -c "$cmd" +dmenu_path | dmenu "$@" | ${SHELL:-"/bin/sh"} &