Bug 400 - gvfs-open can't open https links
Summary: gvfs-open can't open https links
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: x86_64 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Ahmad Samir
QA Contact:
URL:
Whiteboard:
Keywords: Triaged
Depends on:
Blocks:
 
Reported: 2011-03-16 18:34 CET by Frank Griffin
Modified: 2011-03-22 12:47 CET (History)
1 user (show)

See Also:
Source RPM: shared-mime-info-0.90-1.mga1
CVE:
Status comment:


Attachments

Description Frank Griffin 2011-03-16 18:34:36 CET
If you start Mozilla Thunderbird in a console window, and click on an https URL link in a message, the following error is produced:

[ftg@ftgme2 ~]$ mozilla-thunderbird
DOUBLE-CLICK: 400 --> -1 THRESHOLD: 8 --> -1 gvfs-open: https://bugs.mageia.org/show_bug.cgi?id=397: error opening location: HTTP Error: TLS/SSL support not available; install glib-networking

Indeed, glib-networking was *not* installed (why not ?), but installing it made no difference - the same error resulted even after rebooting.
Thierry Vignaud 2011-03-18 14:53:00 CET

CC: (none) => thierry.vignaud
Summary: gvfs missing TLS/SSL support => missing suggests on glib-networking (gvfs missing TLS/SSL support)

Comment 1 Ahmad Samir 2011-03-21 02:53:25 CET
Thunderbird uses xdg-open by default AFAICS.

However gvfs-open should work too..

Please test this, edit .local/share/applications/mimeapps.list (create it if it doesn't exist), and put the following in it:
[Added Associations]
x-scheme-handler/http=firefox.desktop
x-scheme-handler/https=firefox.desktop

then try 
$ gvfs-open https://bugs.mageia.org/show_bug.cgi?id=397:

Keywords: (none) => NEEDINFO

Comment 2 Frank Griffin 2011-03-21 10:48:16 CET
That does it nicely.

Question, though.  I had an existing .local/.../mimeapps.list of:
[Added Associations]
application/xml=gedit.desktop;mandriva-mozilla-firefox.desktop;wine-extension-xml.desktop;opera.desktop;midori.desktop;bluefish.desktop;firefox.desktop;chromium-browser.desktop;epiphany.desktop;mandriva-kompozer.desktop;kde4-kfmclient_html.desktop;wine-extension-ini.desktop;wine-extension-txt.desktop;emacs.desktop;kde4-kate.desktop;kde4-kwrite.desktop;kde4-kword.desktop;leafpad.desktop;abiword.desktop;writer.desktop;estickies.desktop;
application/x-cd-image=vlc.desktop;nautilus-cd-burner-open-iso.desktop;file-roller.desktop;kde4-ark.desktop;kde4-k3b.desktop;brasero.desktop;totem.desktop;
video/x-flv=vlc.desktop;totem.desktop;
application/octet-stream=userapp-okteta-B9RSQV.desktop;vlc.desktop;userapp-gedit-8RWXLV.desktop;totem.desktop;
application/x-java=userapp-okteta-9I1RLV.desktop;
application/x-shellscript=gedit.desktop;
text/x-c++src=gedit.desktop;
application/x-shockwave-flash=vlc.desktop;
video/x-ms-wmv=vlc.desktop;

which I don't recall creating.  How did this get there ?  It seems considerably more extensive than /usr/share/spplications/mimeapps.list:

[Added Associations]
application/xhtml+xml=firefox.desktop;kde4-kfmclient_html.desktop;kde4-kwrite.desktop;gedit.desktop;writer.desktop;
text/html=firefox.desktop;kde4-kfmclient_html.desktop;kde4-kwrite.desktop;writer.desktop;
Comment 3 Frank Griffin 2011-03-21 15:12:03 CET
Ah, never mind, as I look closer, I can see where they come from - fiddling with nautilus' "Open With" defaults.  Sorry for the noise.

So, what component owns this bug ?
Comment 4 Ahmad Samir 2011-03-21 17:39:41 CET
mimeapps.list gets edited by various tools to change default apps.

The package is shared-mime-info. I'll add some entries for x-scheme-handler/http* in the default /usr/share/applications/mimeapps.list (desktop-file-utils-0.18 specs allow x-scheme-handler/* mimetypes).

Keywords: NEEDINFO => Triaged
Assignee: bugsquad => ahmadsamir3891
Source RPM: gvfs => shared-mime-info-0.90-1.mga1

Comment 5 Ahmad Samir 2011-03-21 18:56:09 CET
Package submitted. (You can test by removing your changes in ~/.local/share/applications/mimeapps.list, and see if it still works with the updated shared-mime-info).

Summary: missing suggests on glib-networking (gvfs missing TLS/SSL support) => gvfs-open can't open https links

Comment 6 Frank Griffin 2011-03-22 12:47:23 CET
Working perfectly now, thanks !

Status: NEW => RESOLVED
Resolution: (none) => FIXED


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