I've got similar problem on Xubuntu 14.10 when using Chromium: click on
magnet link opens Firefox window which (correctly) opens torrent client
(Transmission). I found a solution:

'xdg-open' script incorrectly recognises Xfce4 desktop in 'detectDE()'
function (very old code?), which makes that 'open_generic()' is used
instead of 'open_xfce()'. The code below works much better:

detectDE()
{
    if [ x"$KDE_FULL_SESSION" = x"true" ]; then DE=kde;
    elif [ x"$GNOME_DESKTOP_SESSION_ID" != x"" ]; then DE=gnome;
    elif `dbus-send --print-reply --dest=org.freedesktop.DBus 
/org/freedesktop/DBus org.freedesktop.DBus.GetNameOwner 
string:org.gnome.SessionManager > /dev/null 2>&1` ; then DE=gnome;
    elif [ x"$XDG_CURRENT_DESKTOP" = x"XFCE" ]; then DE=xfce;
    elif [ x"$DESKTOP_SESSION" = x"LXDE" ]; then DE=lxde;
    else DE=""
    fi
}

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/932472

Title:
  xdg-open does not seem to handle magnet links

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/xdg-utils/+bug/932472/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to