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.
void
online_help (const char *page)
{
void
online_help (const char *page)
{
- gchar *argv[3] = { "yelp", 0, 0};
gchar *htmlargv[3] = HTMLOPENARGV;
gchar *htmlfilename = NULL;
gchar *htmlfullname = NULL;
gchar *htmlargv[3] = HTMLOPENARGV;
gchar *htmlfilename = NULL;
gchar *htmlfullname = NULL;
- argv[1] = g_strdup_printf ("file://%s", relocate (DOCDIR "/pspp.xml"));
htmlfilename = g_strdup ("index.html");
}
else
htmlfilename = g_strdup ("index.html");
}
else
gchar **tokens = NULL;
const int maxtokens = 5;
int idx ;
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
/* The page will be translated to the htmlfilename
page htmlfilename
GRAPH#SCATTERPLOT SCATTERPLOT.html
osx: wine is started to launch the uri...
windows: not so bad, but the first access does not work*/
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) ||
#ifdef _WIN32
open_windows_help (htmluri, &htmlerr))
#else
#ifdef _WIN32
open_windows_help (htmluri, &htmlerr))
#else
- 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"),
"with uri: %s "
"The PSSP manual is also available at %s"),
htmlerr->message,
htmluri,
PACKAGE_URL "documentation.html");
}
htmlerr->message,
htmluri,
PACKAGE_URL "documentation.html");
}
g_clear_error (&htmlerr);
}
g_clear_error (&htmlerr);
}