summaryrefslogtreecommitdiff
path: root/x11/dmenu2/files/dmenu2_path
diff options
context:
space:
mode:
Diffstat (limited to 'x11/dmenu2/files/dmenu2_path')
-rw-r--r--x11/dmenu2/files/dmenu2_path15
1 files changed, 0 insertions, 15 deletions
diff --git a/x11/dmenu2/files/dmenu2_path b/x11/dmenu2/files/dmenu2_path
deleted file mode 100644
index b919cc5a4dbb..000000000000
--- a/x11/dmenu2/files/dmenu2_path
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/bin/sh
-
-# adapted from dmenu_path in the original dmenu distribution
-cachedir=${XDG_CACHE_HOME:-$HOME/.cache}
-if [ -d "$cachedir" ]; then
- cache=$cachedir/dmenu2_run
-else
- cache=$HOME/.dmenu2_cache # if no xdg dir, fall back to dotfile in ~
-fi
-IFS=:
-if stest2 -dqr -n "$cache" $PATH; then
- stest2 -flx $PATH | sort -u | tee "$cache"
-else
- cat "$cache"
-fi