From 59ed027f95cf6f7927ef7c2ce1792e571b27a9d2 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Sun, 9 Oct 2016 02:08:14 +0200 Subject: [PATCH] Code cleanup --- tools/dirtree.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/tools/dirtree.c b/tools/dirtree.c index 15f5ead..ecad0c7 100644 --- a/tools/dirtree.c +++ b/tools/dirtree.c @@ -42,13 +42,16 @@ #include "../config.h" #ifndef PROGNAME -# define PROGNAME "dirtree" +# define PROGNAME "dirtree" +#endif +#ifndef PROGNAME_BROWSER +# define PROGNAME_BROWSER "browser" #endif #ifndef PREFIX -# define PREFIX "/usr/local" +# define PREFIX "/usr/local" #endif #ifndef BINDIR -# define BINDIR PREFIX "/bin" +# define BINDIR PREFIX "/bin" #endif @@ -225,7 +228,7 @@ static void _on_dirtree_default(GtkTreeView * view, GtkTreePath * path, else if(pid != 0) return; } - execl(BINDIR "/browser", "browser", location, NULL); + execl(BINDIR "/" PROGNAME_BROWSER, PROGNAME_BROWSER, location, NULL); perror(PROGNAME_BROWSER); }