summaryrefslogtreecommitdiff
path: root/dmenu_path.c
diff options
context:
space:
mode:
authorConnor Lane Smith <cls@lubutu.com>2011-01-07 18:54:40 +0000
committerConnor Lane Smith <cls@lubutu.com>2011-01-07 18:54:40 +0000
commitd515d2758fab55809ef9dcb9b1b8dfb18a5b1606 (patch)
tree3b20ec9ea5378ab79a063be99fcaa07d76cc3bfd /dmenu_path.c
parenta8ea79715fd2ca85d0b08e8255357c042029ab19 (diff)
cache option in config.mk
Diffstat (limited to 'dmenu_path.c')
-rw-r--r--dmenu_path.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/dmenu_path.c b/dmenu_path.c
index 8df2667..407477a 100644
--- a/dmenu_path.c
+++ b/dmenu_path.c
@@ -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);
@@ -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();