After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 748600 - adding torrent magnet link fails
adding torrent magnet link fails
Status: RESOLVED DUPLICATE of bug 738690
Product: gvfs
Classification: Core
Component: general
1.24.x
Other Linux
: Normal normal
: ---
Assigned To: gvfs-maint
gvfs-maint
Depends on:
Blocks:
 
 
Reported: 2015-04-28 18:13 UTC by mathieumart1
Modified: 2015-05-19 11:21 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description mathieumart1 2015-04-28 18:13:00 UTC
Adding magnet links in Deluge via Chromium or xdg-open or gvfs-open fails.
Works fine with Firefox.
Downgrading gvfs from 1.24.1 to 1.22.2 solved the problem.

Additional info:
deluge 1.3.11-3
xdg-utils 1.1.0.git20150323-1
gnome-shell 3.16.1-2
gvfs 1.24.1
"x-scheme-handler/magnet=deluge.desktop" line present under ~/.local/share/applications/mimeapps.list
See post : https://bbs.archlinux.org/viewtopic.php?id=196127

Steps to reproduce:
gvfs-open "magnet:?xt=urn:btih:257e2c235abbadb4aaf6a971a50cb863a41db2b9&dn=archlinux-2015.04.01-dual.iso&tr=udp://tracker.archlinux.org:6969&tr=http://tracker.archlinux.org:6969/announce"
Comment 1 Jan Alexander Steffens (heftig) 2015-04-28 20:40:45 UTC
deluge.desktop uses %U, not %u. As error, deluge reports "No such file: /home/jan/magnet:/?xt=urn:btih:25…" so perhaps this URL is now treated as a relative path?

Reverting commit 95aac171c [gvfs-open: Fix incorrect use of g_app_info_launch_default_for_uri()] makes it work again.
Comment 2 Ondrej Holy 2015-04-29 09:27:22 UTC
Thanks for the bug report! The patch from Bug 738690 is apparently wrong. All uris, which doesn't contain file path, don't work currently. Also simpler ones than the magnet links don't work, e.g.: 
gvfs-open mailto:name@example.com
Comment 3 Bastien Nocera 2015-04-29 09:31:35 UTC
(In reply to Ondrej Holy from comment #2)
> Thanks for the bug report! The patch from Bug 738690 is apparently wrong.

No, that patch is very correct.

g_app_info_launch_default_for_uri might be broken for URIs which can't have a backing GFiles though.
Comment 4 Ondrej Holy 2015-05-19 11:21:52 UTC

*** This bug has been marked as a duplicate of bug 738690 ***