Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Additional details are:

OS = 12.10

Present Default Torrent Application = qBittorrent

Preferred Default Torrent Application = Vuze

My main area in of which I'm looking for advise is magnet links. Plus the program in question isn't 'installed' per say I have downloaded the tarball file for Vuze and I run the executable file from there to run it.

share|improve this question
    
possible duplicate of How to set default program? –  devav2 Dec 12 '12 at 6:11
    
Nope, that question is regarding things that are simple to set defaults for, this is for torrents, specifically magnet links. –  Brenton Horne Dec 12 '12 at 8:19
    
Thanks for the edit. Now the question looks clear. –  devav2 Dec 12 '12 at 12:18
add comment

4 Answers 4

I had the same problem and found a solution here:

In escence you have to make sure your apps's .desktop file on:

/usr/share/applications

has this line:

MimeType=application/x-bittorrent;application/x-torrent;

and then add/edit this line on /usr/share/applications/defaults.list:

x-scheme-handler/magnet={$MYAPP}.desktop;

setting the correct app name of course.

Hope this can help.

share|improve this answer
add comment

Right click on the .torrent file > Properties > Open With (select Vuze), "set as default" and you're done.

You can always uninstall qbittorrent as well.

share|improve this answer
2  
What about magnet files? I'd like to keep qBittorrent so I have a choice. Plus Vuze I don't have 'Installed' per say. I downloaded the tarball extracted the files and use the executable file to run the program. –  Brenton Horne Dec 12 '12 at 7:25
add comment

Add the following line to ~/.local/share/applications/mimeapps.list

x-scheme-handler/magnet=vuze.desktop

Or If you are using Firefox go to Edit > Preferences > Applications chage default application for magnet to vuze

share|improve this answer
add comment

Let me explain this again

Firstly we need to check that your program's ".desktop file" (in /usr/share/applications) has this line:

MimeType=application/x-bittorrent;application/x-torrent;

To check, open the text editor (called gedit) and hit "open" up to the left, then navigate to your program's .desktop file. As stated; you should find it in the folder /usr/share/applications. After you open it, search for "MimeType" (by pressing Ctrl+f and typing "MimeType" in the box that shows up).

...If you did find that it has this line then proceed. (if not then just put the line in. Modify the existing line.) Close gedit.


Now that we've done the checking; open the file /usr/share/applications/defaults.list (the same way you opened the .desktop file). Search for "x-scheme-handler/magnet" (same way also). If you found it, make it look like this;

x-scheme-handler/magnet=YOURPROGRAM.desktop;

Replace YOURPROGRAM by the program you want to set default. The name must exactly match the name of your program's .desktop file.

example: x-scheme-handler/magnet=kde4-ktorrent.desktop;

And you're done!

Thanks to Adrian Matteo for the source.

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.