-
Originally, if the yelp command was not installed, attempting to display help produced an error dialog with this message: Failed to execute child process "yelp" (No such file or directory) However since this commit during the Gtk 3 port [1] the error message became this less useful one: Operation not supported Two attempts are made to display the GParted Manual, first using gtk_show_uri() and second by executing the yelp command directly. Prior to the aforementioned commit [1] both methods returned the failure reason using the same 'error' variable. Hence reported the message "Failed to execute child process "yelp" ..." from the second attempt. However that commit had to re-code the second method as part of the Gtk 3 port and use a different error returning mechanism, thus the use of different variable 'e'. But the dialog was left reporting the message from the original 'error' variable, thus reporting "Operation not supported" message from the first attempt using gtk_show_uri(). Fix by again displaying the message from the second failure into the error dialog. Also make it very clear there are two error returning variables by naming them 'error1' and 'error2_msg'. [1] 2953778a port-to-gtk3: Use Gdk::AppLaunchContext to launch yelp (#7)
e3ae8a6f