From 6395970e6b259e7fe0eb9edfcae443d078ec7337 Mon Sep 17 00:00:00 2001 From: Curtis Gedak Date: Mon, 17 Jan 2011 09:26:28 -0700 Subject: [PATCH] Increase robustness of help manual launch Add direct invocation of yelp if normal open help manual methods fail. --- src/Win_GParted.cc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Win_GParted.cc b/src/Win_GParted.cc index 677e4f1c..c36b573f 100644 --- a/src/Win_GParted.cc +++ b/src/Win_GParted.cc @@ -1236,6 +1236,13 @@ void Win_GParted::show_help_dialog( const Glib::ustring & filename /* E.g., gpar Glib::ustring command = "gnome-open " + uri ; gdk_spawn_command_line_on_screen( gscreen, command .c_str(), &error ) ; #endif + if ( error != NULL ) + { + //Try opening yelp application directly + g_clear_error( &error ) ; //Clear error from trying to open gparted help manual above (gtk_show_uri or gnome-open). + Glib::ustring command = "yelp " + uri ; + gdk_spawn_command_line_on_screen( gscreen, command .c_str(), &error ) ; + } if ( error != NULL ) {