diff options
author | Anselm R Garbe <garbeam@gmail.com> | 2008-04-09 23:31:49 +0100 |
---|---|---|
committer | Anselm R Garbe <garbeam@gmail.com> | 2008-04-09 23:31:49 +0100 |
commit | 7195e941c1cb91e347a9c906203ad39245deabd6 (patch) | |
tree | e77ce0820f001ff027c30b77c4acc639c42094bf | |
parent | 12805b69acac4b2daa09ef7570cf1c3161ba6c9d (diff) |
re-applied Peter Hartlich's and Jukkas dmenu-related patches, for odd reasons they disappeared
-rw-r--r-- | config.mk | 2 | ||||
-rwxr-xr-x | dmenu_path | 16 | ||||
-rwxr-xr-x | dmenu_run | 2 |
3 files changed, 10 insertions, 10 deletions
@@ -1,5 +1,5 @@ | |||
1 | # dmenu version | 1 | # dmenu version |
2 | VERSION = 3.6 | 2 | VERSION = 3.7 |
3 | 3 | ||
4 | # Customize below to fit your system | 4 | # Customize below to fit your system |
5 | 5 | ||
@@ -3,24 +3,24 @@ CACHE=$HOME/.dmenu_cache | |||
3 | IFS=: | 3 | IFS=: |
4 | 4 | ||
5 | uptodate() { | 5 | uptodate() { |
6 | test ! -f $CACHE && return 1 | 6 | test -f "$CACHE" && |
7 | for dir in $PATH | 7 | for dir in $PATH |
8 | do | 8 | do |
9 | test $dir -nt $CACHE && return 1 | 9 | test ! $dir -nt "$CACHE" || return 1 |
10 | done | 10 | done |
11 | return 0 | ||
12 | } | 11 | } |
13 | 12 | ||
14 | if ! uptodate | 13 | if ! uptodate |
15 | then | 14 | then |
16 | for dir in $PATH | 15 | for dir in $PATH |
17 | do | 16 | do |
18 | for file in "$dir"/* | 17 | cd "$dir" && |
18 | for file in * | ||
19 | do | 19 | do |
20 | test -x "$file" && echo "${file##*/}" | 20 | test -x "$file" && echo "$file" |
21 | done | 21 | done |
22 | done | sort | uniq > $CACHE.$$ | 22 | done | sort -u > "$CACHE".$$ && |
23 | mv $CACHE.$$ $CACHE | 23 | mv "$CACHE".$$ "$CACHE" |
24 | fi | 24 | fi |
25 | 25 | ||
26 | cat $CACHE | 26 | cat "$CACHE" |
@@ -1,2 +1,2 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | exe=`dmenu_path | dmenu $*` && exec $exe | 2 | exe=`dmenu_path | dmenu ${1+"$@"}` && exec $exe |