GNOME Bugzilla – Bug 748600
adding torrent magnet link fails
Last modified: 2015-05-19 11:21:52 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"
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.
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
(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.
*** This bug has been marked as a duplicate of bug 738690 ***