Ubuntu

xdg-open does not seem to handle magnet links

Reported by karl anliot on 2012-02-15
48
This bug affects 10 people
Affects Status Importance Assigned to Milestone
xdg-utils (Ubuntu)
Undecided
Unassigned

Bug Description

i'm running precise 12.04
expected behavior is to open magnet links in a bittorrent client.

on Lubuntu, the actual behavior is to open another chromium window when clicking the link.

$ dpkg -I xdg-utils
dpkg-deb: error: failed to read archive `xdg-utils': No such file or directory
anliot@6002:~/pcman/pcmanfm-0.9.10$ man dpkg
anliot@6002:~/pcman/pcmanfm-0.9.10$ dpkg -s xdg-utils
Package: xdg-utils
Status: install ok installed
Priority: optional
Section: utils
Installed-Size: 316
Maintainer: Ubuntu Developers <email address hidden>
Architecture: all
Version: 1.1.0~rc1-2ubuntu6

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: xdg-utils 1.1.0~rc1-2ubuntu6
ProcVersionSignature: Ubuntu 3.2.0-14.23-generic 3.2.3
Uname: Linux 3.2.0-14-generic x86_64
NonfreeKernelModules: fglrx
ApportVersion: 1.91-0ubuntu1
Architecture: amd64
Date: Tue Feb 14 20:01:02 2012
Dependencies:

InstallationMedia: Lubuntu 12.04 "Precise Pangolin" - Alpha amd64 (20120205)
PackageArchitecture: all
ProcEnviron:
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: xdg-utils
UpgradeStatus: No upgrade log present (probably fresh install)

Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in xdg-utils (Ubuntu):
status: New → Confirmed
Damian (daimonpoland) wrote :

Anyway fix provided in URL is a bit intrusive. Shouldn't it be handled by package update?

Cristiano Nunes (cfgnunes) wrote :

I found a workaround in file: /usr/bin/xdg-open
See: http://www.foresightlinux.se/make-chromium-to-open-magnet-links/

PS: In Lubuntu, this script access the line of file:
else DE=""

Guilherme Barile (guigouz) wrote :

The workaround presented by Cristiano Nunes still depends on gnome-open and hacks the detect_de function on xdg-open so it treats any window manager as gnome.

xdg-utils_1.1.0~rc1+git20111210 from debian sid fixes the problem with generic window managers, a simple dpkg-rebuildpackage resolved the issue (the original debian package may install without modifications, haven't tested it)

John Bowman (johnrbowman) wrote :

I can confirm that this bug is still present in 13.04, and that as guigouz said, the debian sid package fixes the problem. (I am using a generic window manager - fluxbox.) I can't check the status of the package in 13.10 right now.

sirre (sirre) wrote :

This bug is still present in Lubuntu 13.10.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers