Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I am trying to set the default application for magnet links using:

~ $ xdg-mime default deluge.desktop x-scheme-handler/magnet

Checking this with grep -i deluge ~/.local/share/applications/* yeilds:

 /home/manko/.local/share/applications/mimeapps.list:x-scheme-handler/magnet=deluge.desktop
 /home/manko/.local/share/applications/mimeapps.list:application/x-bittorrent=deluge.desktop

i.e. it should have worked right?!? c.f:

~ $ xdg-mime query default x-scheme-handler/magnet
deluge.desktop

However when I run xdg-open magnet:?xt=urn:btih:6fa3fa92... chromium fires up!

I'm stumped.

share|improve this question
    
What does xdg-mime query default x-scheme-handler/magnet return ? –  don_crissti Nov 12 '12 at 20:18
    
@don_crissti deluge.desktop –  trideceth12 Nov 13 '12 at 5:00
add comment

1 Answer

I ended up using this patch for xdg-open, which just hardcodes deluge.

Hack central but does the job, and at least taught me that xdg-open is a script which I can play with.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.