X-Git-Url: https://git.xinqibao.xyz/dmenu.git/blobdiff_plain/8cc28cb4265b0c088ea909e58f42342b2214722e..c42c3780274e6b12eaeab918cf7c13d2c36cf253:/dmenu_run

diff --git a/dmenu_run b/dmenu_run
index e0a3e13..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 stest -dqr -n "$CACHE" $PATH; then
-		stest -flx $PATH | sort -u > "$CACHE"
-	fi
-)
-cmd=`dmenu "$@" < "$CACHE"` && exec sh -c "$cmd"
+dmenu_path | dmenu "$@" | ${SHELL:-"/bin/sh"} &