ttuuxxx wrote:Hi technosaurus usually they are looking for either ghelp or yelp, one of these days we\ll going to need two scripts called ghelp and yelp and able to convert the string value for default browsers, since yelp is just a mozilla based browser with a small gui over it.
ttuuxxx
not _usually_ ... that is gnumeric specific, and others may be as well
this is what I am talking about:
(abiword:32138): WARNING **: Operation not supported
may have the same gtk_show_uri issues in recent versions of gimp, thunar, gitg, vitkeyboard, gparted, gedit, shotwell, exo, gnome-mplayer, midori, glade, GNU typing tutor, gobby, frogr, ... a really long list of apps use it now
the question is - do we compile gvfs and recompile gtk, or just patch gtk and recompile - I am game for either way (although PCManFM relies heavily on gvfs, so I lean that way)
this warning appears any time you attempt to do anything involving a url call with gtk_show_uri and possibly others (if you compile abiword in gtk+-2.12 then that whole code block gets skipped and uses an alternate _working_ method) ... but you will get this same warning any time an application tries to open a link using gtk_show_uri - it causes ayttm to lock up
https://bugs.launchpad.net/linuxdcpp/+bug/354148
part of the code is in glib's appinfo.c & it has some gvfs code elsewhere IIRC - so that may mean a whole recompile if it is fixed in glib or gvfs is added
found a possible fix using xdg-open:
here
void show_uri(GtkWidget *widget, gpointer _uri)
{
/* Because gtk_show_uri is broken */
gchar *uri = g_shell_quote(_uri);
g_message("Showing %s", uri);
gchar *cmd = g_strdup_printf("xdg-open %s", uri);
g_spawn_command_line_async(cmd, NULL);
g_free(uri);
g_free(cmd);
//GError *err = NULL;
//if (!gtk_show_uri(NULL, uri, GDK_CURRENT_TIME, &err)) {
// g_warning("error showing `%s' %s", uri, err->message);
// g_error_free(err);
//}
}
I had written a small script to replace xdg-open before we started including it (for some app I forget which) based loosely on defaulthandler but more simplified
basically it did this:
file:// gets stripped and opened in rox
ftp:// and http:// opens in defaultbrowser
all else are rox $@ #uses rox's mime handling
(unresolved - links that don't have http:// and end in other than htm or html? ... possibly [ ! `rox $@` ] && defaultbrowser $@ ... can't remember exactly)