Bug 544119

Summary: gtk_show_url fails to launch browser without gvfs installed
Product: [Fedora] Fedora Reporter: Jon Burgess <jburgess777>
Component: gtk2Assignee: Matthias Clasen <mclasen>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 12CC: mclasen, pbrobinson
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-12-03 23:50:00 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Perform error checking for gtk_show_uri() call none

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):
bisho-0.17-1.fc12.i686

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.