From ae432932ea7cbf4257e6104f27ec56ee80f621b5 Mon Sep 17 00:00:00 2001 From: Friedrich Beckmann Date: Thu, 25 Jun 2020 19:53:53 +0200 Subject: [PATCH] help: removed yelp support The yelp tool is broken for three years and cannot show uris with a tag. John wrote a bug report three years ago but it is not fixed yet. https://gitlab.gnome.org/GNOME/yelp/-/issues/116 Once yelp works again, we can revert this commit. --- src/ui/gui/help-menu.c | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/src/ui/gui/help-menu.c b/src/ui/gui/help-menu.c index 823525e1ed..712dbbadd2 100644 --- a/src/ui/gui/help-menu.c +++ b/src/ui/gui/help-menu.c @@ -131,9 +131,7 @@ static gboolean open_windows_help (const gchar *helpuri, void online_help (const char *page) { - GError *err = NULL; GError *htmlerr = NULL; - gchar *argv[3] = { "yelp", 0, 0}; gchar *htmlargv[3] = HTMLOPENARGV; gchar *htmlfilename = NULL; gchar *htmlfullname = NULL; @@ -141,7 +139,6 @@ online_help (const char *page) if (page == NULL) { - argv[1] = g_strdup_printf ("file://%s", relocate (DOCDIR "/pspp.xml")); htmlfilename = g_strdup ("index.html"); } else @@ -149,8 +146,6 @@ online_help (const char *page) gchar **tokens = NULL; const int maxtokens = 5; int idx ; - argv[1] = g_strdup_printf ("file://%s#%s", - relocate (DOCDIR "/pspp.xml"), page); /* The page will be translated to the htmlfilename page htmlfilename GRAPH#SCATTERPLOT SCATTERPLOT.html @@ -188,9 +183,7 @@ online_help (const char *page) osx: wine is started to launch the uri... windows: not so bad, but the first access does not work*/ - if (! (g_spawn_async (NULL, argv, - NULL, G_SPAWN_SEARCH_PATH, - NULL, NULL, NULL, &err) || + if (! ( #ifdef _WIN32 open_windows_help (htmluri, &htmlerr)) #else @@ -200,19 +193,15 @@ online_help (const char *page) #endif ) { - msg (ME, _("Cannot open reference manual via yelp: %s. " - "Cannot open via html: %s " + msg (ME, _("Cannot open via html: %s " "with uri: %s " "The PSSP manual is also available at %s"), - err->message, htmlerr->message, htmluri, PACKAGE_URL "documentation.html"); } - g_free (argv[1]); g_free (htmluri); - g_clear_error (&err); g_clear_error (&htmlerr); } -- 2.30.2