Comment 1 for bug 367874

Revision history for this message
box2 (linuxdcpp) wrote :

Found the source of the problem. Even though I was passing true for:

#if GTK_CHECK_VERSION(2, 14, 0)
(line 220 of linux/WulforUtil.cc of latest bzr)

(I'm using libgtk 2.14.7-5, which I just updated to yesterday) it seems that gtk_show_uri still requires gvfs to operate, which is weird because I thought that Gnome was trying to get rid of gvfs (at least by the time of gtk+ 3.0).

Perhaps should make gvfs a dependency of ldcpp, or perhaps make your nested ifs go something like (starting at line 220):

#if GTK_CHECK_VERSION(2, 14, 0)
 gtk_show_uri(NULL, (gchar *)uri.c_str(), GDK_CURRENT_TIME, &error);
#if error /* Woops, no gvfs */
 gchar *argv[3];
 argv[0] = (gchar *)"xdg-open";
 argv[1] = (gchar *)uri.c_str();
 argv[2] = NULL;
 g_spawn_async(NULL, argv, NULL, G_SPAWN_SEARCH_PATH, NULL, NULL, NULL, &error);
#endif
#else
 gchar *argv[3];

and continue the checks for OS and etc as how it was.