tre-applied Peter Hartlich's and Jukkas dmenu-related patches, for odd reasons they disappeared - dmenu - Dmenu fork with xft fonts.
(HTM) git clone git://r-36.net/dmenu
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 7195e941c1cb91e347a9c906203ad39245deabd6
(DIR) parent 12805b69acac4b2daa09ef7570cf1c3161ba6c9d
(HTM) Author: Anselm R Garbe <garbeam@gmail.com>
Date: Wed, 9 Apr 2008 23:31:49 +0100
re-applied Peter Hartlich's and Jukkas dmenu-related patches, for odd reasons they disappeared
Diffstat:
config.mk | 2 +-
dmenu_path | 16 ++++++++--------
dmenu_run | 2 +-
3 files changed, 10 insertions(+), 10 deletions(-)
---
(DIR) diff --git a/config.mk b/config.mk
t@@ -1,5 +1,5 @@
# dmenu version
-VERSION = 3.6
+VERSION = 3.7
# Customize below to fit your system
(DIR) diff --git a/dmenu_path b/dmenu_path
t@@ -3,24 +3,24 @@ CACHE=$HOME/.dmenu_cache
IFS=:
uptodate() {
- test ! -f $CACHE && return 1
+ test -f "$CACHE" &&
for dir in $PATH
do
- test $dir -nt $CACHE && return 1
+ test ! $dir -nt "$CACHE" || return 1
done
- return 0
}
if ! uptodate
then
for dir in $PATH
do
- for file in "$dir"/*
+ cd "$dir" &&
+ for file in *
do
- test -x "$file" && echo "${file##*/}"
+ test -x "$file" && echo "$file"
done
- done | sort | uniq > $CACHE.$$
- mv $CACHE.$$ $CACHE
+ done | sort -u > "$CACHE".$$ &&
+ mv "$CACHE".$$ "$CACHE"
fi
-cat $CACHE
+cat "$CACHE"
(DIR) diff --git a/dmenu_run b/dmenu_run
t@@ -1,2 +1,2 @@
#!/bin/sh
-exe=`dmenu_path | dmenu $*` && exec $exe
+exe=`dmenu_path | dmenu ${1+"$@"}` && exec $exe