Code cleanup

This commit is contained in:
Pierre Pronchery 2016-10-09 02:08:14 +02:00
parent 70db26e7e1
commit 59ed027f95

View File

@ -44,6 +44,9 @@
#ifndef PROGNAME
# define PROGNAME "dirtree"
#endif
#ifndef PROGNAME_BROWSER
# define PROGNAME_BROWSER "browser"
#endif
#ifndef PREFIX
# define PREFIX "/usr/local"
#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);
}