Browse Source

re-applied Peter Hartlich's and Jukkas dmenu-related patches, for odd reasons they disappeared

master
Anselm R Garbe 16 years ago
parent
commit
7195e941c1
3 changed files with 10 additions and 10 deletions
  1. +1
    -1
      config.mk
  2. +8
    -8
      dmenu_path
  3. +1
    -1
      dmenu_run

+ 1
- 1
config.mk View File

@ -1,5 +1,5 @@
# dmenu version # dmenu version
VERSION = 3.6
VERSION = 3.7
# Customize below to fit your system # Customize below to fit your system


+ 8
- 8
dmenu_path View File

@ -3,24 +3,24 @@ CACHE=$HOME/.dmenu_cache
IFS=: IFS=:
uptodate() { uptodate() {
test ! -f $CACHE && return 1
test -f "$CACHE" &&
for dir in $PATH for dir in $PATH
do do
test $dir -nt $CACHE && return 1
test ! $dir -nt "$CACHE" || return 1
done done
return 0
} }
if ! uptodate if ! uptodate
then then
for dir in $PATH for dir in $PATH
do do
for file in "$dir"/*
cd "$dir" &&
for file in *
do do
test -x "$file" && echo "${file##*/}"
test -x "$file" && echo "$file"
done done
done | sort | uniq > $CACHE.$$
mv $CACHE.$$ $CACHE
done | sort -u > "$CACHE".$$ &&
mv "$CACHE".$$ "$CACHE"
fi fi
cat $CACHE
cat "$CACHE"

+ 1
- 1
dmenu_run View File

@ -1,2 +1,2 @@
#!/bin/sh #!/bin/sh
exe=`dmenu_path | dmenu $*` && exec $exe
exe=`dmenu_path | dmenu ${1+"$@"}` && exec $exe

Loading…
Cancel
Save