Bug 63792 - xdg-open requires preceding slash
Summary: xdg-open requires preceding slash
Status: RESOLVED WORKSFORME
Alias: None
Product: Portland
Classification: Unclassified
Component: xdg-utils (show other bugs)
Version: 1.1.0 rc1
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Portland Bugs
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-22 03:39 UTC by tesoro302
Modified: 2014-12-19 15:25 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description tesoro302 2013-04-22 03:39:14 UTC
'xdg-open "magnet:/..."' works but 'xdg-open "magnet:..."' does not work.  piratebay.se provides magnet links in the second format.  Can xdg-open be made to not require the slash?

Non-Working Example:

$ xdg-open "magnet:?xt=urn:btih:b2e2cbb742754eb5a4ec14a5e71d0727ab2d7a90&dn=Workaholics+Season+1+Complete+720p&tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A80&tr=udp%3A%2F%2Ftracker.publicbt.com%3A80&tr=udp%3A%2F%2Ftracker.istole.it%3A6969&tr=udp%3A%2F%2Ftracker.ccc.de%3A80"

Working Example (preceding slash added):

$ xdg-open "magnet:/?xt=urn:btih:b2e2cbb742754eb5a4ec14a5e71d0727ab2d7a90&dn=Workaholics+Season+1+Complete+720p&tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A80&tr=udp%3A%2F%2Ftracker.publicbt.com%3A80&tr=udp%3A%2F%2Ftracker.istole.it%3A6969&tr=udp%3A%2F%2Ftracker.ccc.de%3A80"

Magnet Link Source:

http://thepiratebay.se/torrent/6491489/Workaholics_Season_1_Complete_720p
Comment 1 Rex Dieter 2013-04-22 11:50:18 UTC
I cannot reproduce using xdg-utils-1.1.0-0.14.20120809git.fc18 (on fedora 18) with kde, with both ktorrent and transmission torrent applications.

What version of xdg-utils, desktop environment, and torrent application(s) are testing with?
Comment 2 tesoro302 2013-04-22 17:31:38 UTC
That's strange, I'm using transmission-gtk too.

xdg-utils-1.1.0_rc1_p20120319
xfce4-meta-4.10
transmission-2.77

I've also tried xdg-utils-1.1.0_rc1_p20120916 as those are the two versions of xdg-utils in Gentoo's portage.

I have the following in .local/share/applications/mimeapps.list:

application/x-bittorrent=transmission-gtk.desktop
x-scheme-handler/magnet=transmission-gtk.desktop
Comment 3 Reuben Thomas 2014-12-19 00:45:58 UTC
I too cannot reproduce this bug, with transmission 2.82 and xdg-utils-1.1.0~rc1. The only difference I can see is that I don't have those entries in my ~/.local/share/applications/mimeapps.list.

I tried this in freshly-installed Xubuntu 14.04.
Comment 4 Rex Dieter 2014-12-19 15:25:18 UTC
If you can reproduce it with a more recent version, please do re-open. thanks.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.