From d7bb6562c9efa3f6ef5ebfe9bc4e1736df442344 Mon Sep 17 00:00:00 2001 From: John Darrington Date: Sat, 17 Dec 2011 22:14:11 +0100 Subject: [PATCH] Escape # character in call to g_spawn_command_line_async It seems that this character was being treated as a comment start. --- src/ui/gui/help-menu.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/ui/gui/help-menu.c b/src/ui/gui/help-menu.c index 73358077..f746441c 100644 --- a/src/ui/gui/help-menu.c +++ b/src/ui/gui/help-menu.c @@ -95,9 +95,7 @@ online_help (const char *page) if (page == NULL) cmd = g_strdup_printf ("yelp file://%s", relocate (DOCDIR "/pspp.xml")); else - cmd = g_strdup_printf ("yelp file://%s#%s", relocate (DOCDIR "/pspp.xml"), page); - - g_print ("%s\n",cmd); + cmd = g_strdup_printf ("yelp file://%s\\#%s", relocate (DOCDIR "/pspp.xml"), page); if ( ! g_spawn_command_line_async (cmd, &err) ) { -- 2.30.2