X-Git-Url: https://git.xinqibao.xyz/dmenu.git/blobdiff_plain/5e0156c0727fa8f225c3309f265da241a98edc08..a280bdad1f16943a70eaff086852d3b11043b060:/dmenu_run?ds=sidebyside

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"} &