pinosaur
/
dmenu.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a8ea797
)
cache option in config.mk
author
Connor Lane Smith
<cls@lubutu.com>
Fri, 7 Jan 2011 18:54:40 +0000
(18:54 +0000)
committer
Connor Lane Smith
<cls@lubutu.com>
Fri, 7 Jan 2011 18:54:40 +0000
(18:54 +0000)
config.mk
patch
|
blob
|
history
dmenu_path.c
patch
|
blob
|
history
diff --git
a/config.mk
b/config.mk
index
ebaab81
..
08ea1bf
100644
(file)
--- a/
config.mk
+++ b/
config.mk
@@
-1,7
+1,9
@@
# dmenu version
VERSION = 4.2.1
# dmenu version
VERSION = 4.2.1
-# Customize below to fit your system
+# dmenu_path cache (absolute or relative to $HOME)
+CACHE = .dmenu_cache
+
# paths
PREFIX = /usr/local
# paths
PREFIX = /usr/local
@@
-19,7
+21,7
@@
INCS = -I${X11INC}
LIBS = -L${X11LIB} -lX11 ${XINERAMALIBS}
# flags
LIBS = -L${X11LIB} -lX11 ${XINERAMALIBS}
# flags
-CPPFLAGS = -D_BSD_SOURCE -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS}
+CPPFLAGS = -D_BSD_SOURCE -DVERSION=\"${VERSION}\"
-DCACHE=\"${CACHE}\"
${XINERAMAFLAGS}
CFLAGS = -std=c99 -pedantic -Wall -Os ${INCS} ${CPPFLAGS}
LDFLAGS = -s ${LIBS}
CFLAGS = -std=c99 -pedantic -Wall -Os ${INCS} ${CPPFLAGS}
LDFLAGS = -s ${LIBS}
diff --git
a/dmenu_path.c
b/dmenu_path.c
index
8df2667
..
407477a
100644
(file)
--- a/
dmenu_path.c
+++ b/
dmenu_path.c
@@
-7,8
+7,6
@@
#include <unistd.h>
#include <sys/stat.h>
#include <unistd.h>
#include <sys/stat.h>
-#define CACHE ".dmenu_cache"
-
static void die(const char *s);
static int qstrcmp(const void *a, const void *b);
static void scan(void);
static void die(const char *s);
static int qstrcmp(const void *a, const void *b);
static void scan(void);
@@
-26,7
+24,7
@@
main(void) {
if(chdir(home) < 0)
die("chdir failed");
if(uptodate()) {
if(chdir(home) < 0)
die("chdir failed");
if(uptodate()) {
- execl
p("
cat", "cat", CACHE, NULL);
+ execl
("/bin/
cat", "cat", CACHE, NULL);
die("exec failed");
}
scan();
die("exec failed");
}
scan();