Code cleanup
This commit is contained in:
parent
70db26e7e1
commit
59ed027f95
|
@ -42,13 +42,16 @@
|
||||||
#include "../config.h"
|
#include "../config.h"
|
||||||
|
|
||||||
#ifndef PROGNAME
|
#ifndef PROGNAME
|
||||||
# define PROGNAME "dirtree"
|
# define PROGNAME "dirtree"
|
||||||
|
#endif
|
||||||
|
#ifndef PROGNAME_BROWSER
|
||||||
|
# define PROGNAME_BROWSER "browser"
|
||||||
#endif
|
#endif
|
||||||
#ifndef PREFIX
|
#ifndef PREFIX
|
||||||
# define PREFIX "/usr/local"
|
# define PREFIX "/usr/local"
|
||||||
#endif
|
#endif
|
||||||
#ifndef BINDIR
|
#ifndef BINDIR
|
||||||
# define BINDIR PREFIX "/bin"
|
# define BINDIR PREFIX "/bin"
|
||||||
#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