dmenu-tidy-20230318-dfbbf7f.diff - sites - public wiki contents of suckless.org
(HTM) git clone git://git.suckless.org/sites
(DIR) Log
(DIR) Files
(DIR) Refs
---
dmenu-tidy-20230318-dfbbf7f.diff (724B)
---
1 From 4d815b67812fd41e912545c344a45e5399ac8fde Mon Sep 17 00:00:00 2001
2 From: Phillip Tischler <git@geilerschas.at>
3 Date: Sun, 19 Mar 2023 00:03:03 +0100
4 Subject: [PATCH] asd
5
6 ---
7 dmenu_path | 12 +++---------
8 1 file changed, 3 insertions(+), 9 deletions(-)
9
10 diff --git a/dmenu_path b/dmenu_path
11 index 3a7cda7..9a7e661 100755
12 --- a/dmenu_path
13 +++ b/dmenu_path
14 @@ -1,13 +1,7 @@
15 #!/bin/sh
16
17 -cachedir="${XDG_CACHE_HOME:-"$HOME/.cache"}"
18 -cache="$cachedir/dmenu_run"
19 -
20 -[ ! -e "$cachedir" ] && mkdir -p "$cachedir"
21 -
22 -IFS=:
23 -if stest -dqr -n "$cache" $PATH; then
24 - stest -flx $PATH | sort -u | tee "$cache"
25 +if [ -z "${DMENU_PATH}" ] ; then
26 + stest -flx $PATH
27 else
28 - cat "$cache"
29 + stest -flx $DMENU_PATH
30 fi
31 --
32 2.30.2
33