Code cleanup
This commit is contained in:
parent
445e5b4688
commit
bb15f27173
|
@ -61,6 +61,9 @@
|
||||||
#ifndef PROGNAME_DELETE
|
#ifndef PROGNAME_DELETE
|
||||||
# define PROGNAME_DELETE "delete"
|
# define PROGNAME_DELETE "delete"
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef PROGNAME_HTMLAPP
|
||||||
|
# define PROGNAME_HTMLAPP "htmlapp"
|
||||||
|
#endif
|
||||||
#ifndef PREFIX
|
#ifndef PREFIX
|
||||||
# define PREFIX "/usr/local"
|
# define PREFIX "/usr/local"
|
||||||
#endif
|
#endif
|
||||||
|
@ -1127,7 +1130,7 @@ static void _run_url(DesktopIcon * desktopicon)
|
||||||
const char section[] = "Desktop Entry";
|
const char section[] = "Desktop Entry";
|
||||||
char const * url;
|
char const * url;
|
||||||
/* XXX open with the default web browser instead */
|
/* XXX open with the default web browser instead */
|
||||||
char * argv[] = { "htmlapp", "--", NULL, NULL };
|
char * argv[] = { PROGNAME_HTMLAPP, "--", NULL, NULL };
|
||||||
const unsigned int flags = G_SPAWN_SEARCH_PATH;
|
const unsigned int flags = G_SPAWN_SEARCH_PATH;
|
||||||
GError * error = NULL;
|
GError * error = NULL;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user