Increase robustness of help manual launch

Add direct invocation of yelp if normal open help manual methods
fail.
This commit is contained in:
Curtis Gedak 2011-01-17 09:26:28 -07:00
parent eff777df6e
commit 6395970e6b
1 changed files with 7 additions and 0 deletions

View File

@ -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 )
{