Quick Tip: gtk_show_uri(): Operation Not Supported

Writing this down because it took me way too long to realise what I was missing.

If you’re getting the error “Operation Not Supported” when calling gtk_show_uri() or g_app_info_launch_default_for_uri(), then you’re most likely missing gvfs, which contains the extension points for all non-file:// URI schemas.

Now here’s the bit I forgot… gvfs has to be installed in the same prefix as glib. So if it works for your system GLib, but not for the one you built in some prefix, you probably forgot to build and install gvfs in that prefix.

About Danielle

Danielle is an Australian software engineer, computer scientist and feminist. She doesn't really work on GNOME any more (sadly). Opinions and writing are solely her own and so not represent her employer, the GNOME Foundation, or anyone else but herself.
This entry was posted in gtk. Bookmark the permalink.

3 Responses to Quick Tip: gtk_show_uri(): Operation Not Supported

  1. Alban says:

    Awesome! I just had a similar problem: GIO modules (glib-networking) need to be installed in the same prefix as glib. Thanks.

  2. Chandni says:

    A similar thing happened to me a couple of days ago when my manually installed glib didn’t have the dconf gio extension since the system installed dconf had put it in the system’s gio extensions path which my source-built glib wouldn’t read.
    I needed the latest glib for my work so I had to install dconf in the same prefix as that of the built glib.

  3. Chandni says:

    * dconf was required for saving Empathy settings.

Comments are closed.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>