Fix shmenu_run
This commit is contained in:
parent
ebadb8de62
commit
ec53f34089
13
scripts/shmenu/shmenu_path
Executable file
13
scripts/shmenu/shmenu_path
Executable file
|
@ -0,0 +1,13 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
cachedir="${XDG_CACHE_HOME:-"$HOME/.cache"}"
|
||||||
|
cache="$cachedir/dmenu_run"
|
||||||
|
|
||||||
|
[ ! -e "$cachedir" ] && mkdir -p "$cachedir"
|
||||||
|
|
||||||
|
IFS=:
|
||||||
|
if stest -dqr -n "$cache" $PATH; then
|
||||||
|
stest -flx $PATH | sort -u | tee "$cache"
|
||||||
|
else
|
||||||
|
cat "$cache"
|
||||||
|
fi
|
2
scripts/shmenu/shmenu_run
Executable file
2
scripts/shmenu/shmenu_run
Executable file
|
@ -0,0 +1,2 @@
|
||||||
|
#!/bin/sh
|
||||||
|
shmenu_path | shmenu
|
2
shmenu
2
shmenu
|
@ -1 +1 @@
|
||||||
Subproject commit 3e6d31c80f6494e823f5ed0d4dcebd066807269d
|
Subproject commit 3e4cad8870fcc184e4494c7bf9489e93e1cee542
|
Loading…
Reference in a new issue