Convert manual to docbook and load that in yelp.
[pspp-builds.git] / src / ui / gui / helper.c
index 6294e886f694983fb506572e03a2f422008ae402..49dbfda4a181b18e4b9fccabaa8ed4e6a1c4aa18 100644 (file)
@@ -214,10 +214,14 @@ void
 reference_manual (GtkMenuItem *menu, gpointer data)
 {
   GError *err = NULL;
-  if ( ! g_spawn_command_line_async ("yelp info:pspp", &err) )
+  gchar *cmd = g_strdup_printf ("yelp file://%s", relocate (DOCDIR "/pspp.xml"));
+
+  if ( ! g_spawn_command_line_async (cmd, &err) )
     {
       msg (ME, _("Cannot open reference manual: %s"), err->message);
     }
+
+  g_free (cmd);
   g_clear_error (&err);
 }