Re: GLib plans for the next cycle



On Mon, 20 Apr 2009, Alexander Larsson wrote:

> On Mon, 2009-04-20 at 12:29 -0400, Allin Cottrell wrote:
> > On Mon, 20 Apr 2009, Alexander Larsson wrote:
> >
> > > On Mon, 2009-04-20 at 10:43 -0400, Allin Cottrell wrote:
> > > > As it's currently coded gtk_show_uri is bound
> > > > to fail if GVfs is not present.  But more than that: it'll fail
> > > > even if GVfs _is_ present (as it is now on my system), if GVfs
> > > > does not in turn incorporate GConf support.  I thought I'd read
> > > > that GConf was supposed to be deprecated, or on the way there?
> > >
> > > I don't understand what you propose? There is no in-use non-gconf
> > > setting for mapping default handlers for entire uri scheme. So, we
> > > lookup none which mean we then fall back to the per-mime default.
> >
> > The uri I'm testing with gtk_show_uri is a simple http reference.
> > So far as I can tell the attempt to handle it grinds to a halt in
> > g_file_query_info with iface->query_info = NULL.  gnome_url_show
> > has no problem getting firefox to open it.
>
> Well, if you don't have gvfs installed then you will not be able to
> either look up the uri handler for the http uri scheme in gconf, nor
> will you be able to query_info for the mime type of the file on the http
> server. It should not grind to a halt though, can you explain in more
> detail what happens?

I put some debugging statements into some of the gio files, and
here's what I'm getting when I try to open the http reference:

g_io_module_load_module: loaded
  '/opt/gtk2/lib/gio/modules/libgvfsdbus.so'
g_io_module_load_module: loaded
  '/opt/gtk2/lib/gio/modules/libgiofam.so'
g_io_extension_point_lookup: 'gio-local-file-monitor' ->
  gio-local-file-monitor
g_io_extension_point_lookup: 'gio-local-directory-monitor' ->
  gio-local-directory-monitor
g_io_module_load_module: loaded
  '/opt/gtk2/lib/gio/modules/libgioremote-volume-monitor.so'
g_io_extension_point_lookup: 'gio-local-directory-monitor' ->
  gio-local-directory-monitor
g_io_extension_point_lookup: 'gio-local-file-monitor' ->
  gio-local-file-monitor
g_io_extension_point_lookup: 'gio-native-volume-monitor' ->
  gio-native-volume-monitor
g_io_extension_point_lookup: 'gio-vfs' -> gio-vfs
g_io_extension_point_lookup: 'gio-vfs' -> gio-vfs
g_io_extension_point_lookup: 'gio-desktop-app-info-lookup' ->
  gio-desktop-app-info-lookup
g_io_extension_point_lookup: ep = 0x9e92e18
g_file_query_info: iface->query_info = NULL
g_file_query_default_handler gave NULL for
  'http://gretl.sourceforge.net'

And an error message "Operation not supported".

Allin Cottrell



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]