[Portland-bugs] [Bug 47172] New: xdg-open can't open torrent magnet links in xfce
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Fri Mar 9 09:40:55 PST 2012
https://bugs.freedesktop.org/show_bug.cgi?id=47172
Bug #: 47172
Summary: xdg-open can't open torrent magnet links in xfce
Classification: Unclassified
Product: Portland
Version: unspecified
Platform: Other
OS/Version: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: xdg-utils
AssignedTo: portland-bugs at lists.freedesktop.org
ReportedBy: wookiebugs at gmail.com
I'm using Xfce4.8 on arch, with xdg-utils 1.1.0rc1-3, and transmission-gtk
PROBLEM:
xdg-open can't open magnet links in xfce - for example:
$ xdg-open
magnet:?xt=urn:btih:fd638f3eafa8a346ff74c0dace96f9bab3834f85&dn=Adventures+of+Huckleberry+Finn+by+Mark+Twain%2C+A+Livrivox+Audio+B&tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A80&tr=udp%3A%2F%2Ftracker.publicbt.com%3A80&tr=udp%3A%2F%2Ftracker.ccc.de%3A80
[1] 6124
[2] 6125
[3] 6126
[4] 6127
$ /usr/bin/xdg-open: line 478: firefox: command not found
/usr/bin/xdg-open: line 478: mozilla: command not found
/usr/bin/xdg-open: line 478: epiphany: command not found
/usr/bin/xdg-open: line 478: konqueror: command not found
/usr/bin/xdg-open: line 478: chromium-browser: command not found
/usr/bin/xdg-open: line 478: google-chrome: command not found 304-366
/usr/bin/xdg-open: line 478: links2: command not found
I've read in lots of forums about it trying to open magnets with a list of
browsers instead a torrent application, causing problems with, for example,
Chromium.
CAUSE:
Running through the function detectDE() in /usr/bin/xdg-open (lines 304 - 366):
line 312 xprop is not installed as standard
line 313 ditto
line 325 the environment variable DESKTOP_SESSION is "Xfce4 Session", so will
not match "xfce|xfce4" as given in the case statement, and DE detection will
fail.
This means that it's not just magnets - xdg-open misses Xfce completely.
FIX:
line 325 replace "xfce|xfce4)" with "xfce|xfce4|'Xfce Session')"
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Portland-bugs
mailing list