I ran across this problem too when I tried to open a bittorrent magnet link from google chrome. I expected the magnet link to open in transmission-gtk, which did not happen.
And then added this little bit of code to /usr/bin/xdg-open. Basically I added a entry for mate in the finally case statement in xdg-open and then copied the gnome open_gnome to open_mate and changed the line open_gnome to open_mate. Patch made with diff -u attached.
case "$DE" in
mate)
open_mate "$url"
;;
kde)
open_kde "$url"
;;
gnome)
open_gnome "$url"
;;
xfce)
open_xfce "$url"
;;
lxde)
open_lxde "$url"
;;
generic)
open_generic "$url"
;;
*)
exit_failure_operation_impossible "no method available for opening '$url'"
;;
esac
open_mate()
{
if gvfs-open --help 2>/dev/null 1>&2; then
gvfs-open "$1"
else
mate-open "$1"
fi
if [ $? -eq 0 ]; then exit_success
else exit_failure_operation_failed
fi
}
Hello,
I ran across this problem too when I tried to open a bittorrent magnet link from google chrome. I expected the magnet link to open in transmission-gtk, which did not happen.
I read the a nice description of the problem here http:// askubuntu. com/questions/ 108925/ how-to- tell-chrome- what-to- do-with- a-magnet- link.
And then added this little bit of code to /usr/bin/xdg-open. Basically I added a entry for mate in the finally case statement in xdg-open and then copied the gnome open_gnome to open_mate and changed the line open_gnome to open_mate. Patch made with diff -u attached.
case "$DE" in
mate)
open_mate "$url"
;;
kde)
open_kde "$url"
;;
gnome)
open_gnome "$url"
;;
xfce)
open_xfce "$url"
;;
lxde)
open_lxde "$url"
;;
generic)
open_generic "$url"
;;
*) failure_ operation_ impossible "no method available for opening '$url'"
exit_
;;
esac
open_mate()
{
if gvfs-open --help 2>/dev/null 1>&2; then
gvfs-open "$1"
else
mate-open "$1"
fi
if [ $? -eq 0 ]; then
exit_success
exit_failure_ operation_ failed
else
fi
}
BR.