Comment 8 for bug 932472

Revision history for this message
camelon (bul-komorowski) wrote :

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
}