X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fhelp-menu.c;h=da87e235edf9dcf8588baf84b4e79f502d6b786b;hb=9269baf297568f63c2e7a184c73e1c8720b9b319;hp=1dc2daf3090b1dfc28c6c94fcfa5fbc3ebac9308;hpb=ff33b6ca77d468920dc19c8b5258be3f6cdfc073;p=pspp diff --git a/src/ui/gui/help-menu.c b/src/ui/gui/help-menu.c index 1dc2daf309..da87e235ed 100644 --- a/src/ui/gui/help-menu.c +++ b/src/ui/gui/help-menu.c @@ -34,11 +34,11 @@ /* Try to open html documentation uri via the default browser on the operating system */ #ifdef __APPLE__ -#define HTMLOPENARGV {"open", 0, 0} +#define HTMLOPENAPP "open" #elif _WIN32 -#define HTMLOPENARGV {"wscript", 0, 0} +#define HTMLOPENAPP "wscript" #else -#define HTMLOPENARGV {"xdg-open", 0, 0} +#define HTMLOPENAPP "xdg-open" #endif static const gchar *artists[] = { "Bastián Díaz", "Hugo Alejandro", NULL}; @@ -132,7 +132,8 @@ void online_help (const char *page) { GError *htmlerr = NULL; - gchar *htmlargv[3] = HTMLOPENARGV; + gchar helpapp[] = HTMLOPENAPP; + gchar *htmlargv[3] = {helpapp, 0, 0}; gchar *htmlfilename = NULL; gchar *htmlfullname = NULL; gchar *htmluri = NULL;