Bug 544119 - gtk_show_url fails to launch browser without gvfs installed
Summary: gtk_show_url fails to launch browser without gvfs installed
Alias: None
Product: Fedora
Classification: Fedora
Component: gtk2
Version: 12
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Matthias Clasen
QA Contact: Fedora Extras Quality Assurance
Depends On:
TreeView+ depends on / blocked
Reported: 2009-12-03 23:06 UTC by Jon Burgess
Modified: 2009-12-03 23:50 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2009-12-03 23:50:00 UTC
Type: ---

Attachments (Terms of Use)
Perform error checking for gtk_show_uri() call (799 bytes, patch)
2009-12-03 23:11 UTC, Jon Burgess
no flags Details | Diff

Description Jon Burgess 2009-12-03 23:06:00 UTC
Description of problem:
Initially I installed KDE + moblin-desktop. I found that the the bisho flickr 'Log me in' button appeared to do nothing.

Version-Release number of selected component (if applicable):

How reproducible:
Every tim

Steps to Reproduce:
1. Remove gvfs (or just install moblin-desktop without lots of extra gnome stuff)
2. Run bisho
3. Click Flick -> Log me in
Actual results:
button turns grey but nothing appears to happen

Expected results:
browser appears

Additional info:
After some digging into the code I found that gtk_show_uri() in bisho-pane-flickr.c was failing. I then reproduced the error by trying to run simply:

$ gnome-open http://www.google.com
Error showing url: Operation not supported

After some further digging I found a mention that gtk_show_url() relies upon gvfs in order to open URLs. After I installed gvfs the log-me-in button correctly launched a firefox browser window.

Comment 1 Jon Burgess 2009-12-03 23:11:40 UTC
Created attachment 375952 [details]
Perform error checking for gtk_show_uri() call

This patch helped me to diagnose the cause of the problem. I see a couple of other unchecked gtk_show_uri() calls elsewhere in bisho too.

The trunk bisho code has shuffled the files around a bit so the patch may need some more work if pushed upstream.

Comment 2 Peter Robinson 2009-12-03 23:15:39 UTC
I think this should be fixed in gtk but I will work around it in the short term by adding a Requires: to bisho. It will be fixed in bish-0.17-2

Comment 3 Matthias Clasen 2009-12-03 23:50:00 UTC
Sorry, but this is working as designed. 

If you need support for anything but file:// in gtk_show_url you need to install something that implements the corresponding gio extension points. The most likely candidate is gvfs, of course. But gio lets you provide another implementation for moblin, if that is what you want to do.

Note You need to log in before you can comment on or make changes to this bug.