I’ve updated code in GParted to use gtk_show_uri_on_window() to
display it’s manual in yelp, using URI help:gparted. This is
working fine. However when trying to test a failure case by
removing the yelp exectable, gtk_show_uri_on_window() continues
to report success even though yelp is not launched and the
manual not shown. It returns true and leaves error pointing to
NULL.
But also the same behaviour of silent failure is happening for
every other GNOME app too when the yelp command is not
available. For example GNOME Files has this code calling
gtk_show_uri_on_wondow(…, “help:gnome-help/files”, …) [1].
However when yelp is not available and the help files are not
shown, the error dialog never appears.
[1] https://gitlab.gnome.org/GNOME/nautilus/-/blob/40.1/src/nautilus-application.c#L769
So should gtk_show_uri_on_window() report failure to display a
help: URI if the yelp command is not available?
Or is there a way to make it report failure?