Code cleanup
This commit is contained in:
parent
70db26e7e1
commit
59ed027f95
|
@ -44,6 +44,9 @@
|
||||||
#ifndef PROGNAME
|
#ifndef PROGNAME
|
||||||
# define PROGNAME "dirtree"
|
# define PROGNAME "dirtree"
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef PROGNAME_BROWSER
|
||||||
|
# define PROGNAME_BROWSER "browser"
|
||||||
|
#endif
|
||||||
#ifndef PREFIX
|
#ifndef PREFIX
|
||||||
# define PREFIX "/usr/local"
|
# define PREFIX "/usr/local"
|
||||||
#endif
|
#endif
|
||||||
|
@ -225,7 +228,7 @@ static void _on_dirtree_default(GtkTreeView * view, GtkTreePath * path,
|
||||||
else if(pid != 0)
|
else if(pid != 0)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
execl(BINDIR "/browser", "browser", location, NULL);
|
execl(BINDIR "/" PROGNAME_BROWSER, PROGNAME_BROWSER, location, NULL);
|
||||||
perror(PROGNAME_BROWSER);
|
perror(PROGNAME_BROWSER);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user