tcache option in config.mk - 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 d515d2758fab55809ef9dcb9b1b8dfb18a5b1606
(DIR) parent a8ea79715fd2ca85d0b08e8255357c042029ab19
(HTM) Author: Connor Lane Smith <cls@lubutu.com>
Date: Fri, 7 Jan 2011 18:54:40 +0000
cache option in config.mk
Diffstat:
config.mk | 6 ++++--
dmenu_path.c | 4 +---
2 files changed, 5 insertions(+), 5 deletions(-)
---
(DIR) diff --git a/config.mk b/config.mk
t@@ -1,7 +1,9 @@
# 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
t@@ -19,7 +21,7 @@ INCS = -I${X11INC}
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}
(DIR) diff --git a/dmenu_path.c b/dmenu_path.c
t@@ -7,8 +7,6 @@
#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);
t@@ -26,7 +24,7 @@ main(void) {
if(chdir(home) < 0)
die("chdir failed");
if(uptodate()) {
- execlp("cat", "cat", CACHE, NULL);
+ execl("/bin/cat", "cat", CACHE, NULL);
die("exec failed");
}
scan();