[gparted] Increase robustness of help manual launch
- From: Curtis Gedak <gedakc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gparted] Increase robustness of help manual launch
- Date: Mon, 17 Jan 2011 16:29:28 +0000 (UTC)
commit 6395970e6b259e7fe0eb9edfcae443d078ec7337
Author: Curtis Gedak <gedakc gmail com>
Date: Mon Jan 17 09:26:28 2011 -0700
Increase robustness of help manual launch
Add direct invocation of yelp if normal open help manual methods
fail.
src/Win_GParted.cc | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/Win_GParted.cc b/src/Win_GParted.cc
index 677e4f1..c36b573 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 )
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]