Change What Opens Click Download Torrent

Every time I download a torrent file (.torrent), Firefox thinks I should open it with a text editor. How can I get it to open with Transmission? In Edit -> Preferences -> Applications, there's no setting for torrent files, and no apparent way to add a new filetype.

After you download the crx file for Right Click Opens Link in New Tab 1.5.20, open Chrome's extensions page (chrome://extensions/ or find by Chrome menu icon > More tools > Extensions), and then drag-and-drop the *.crx file to the extensions page to install it.

Jonathan
JonathanJonathan

7 Answers

Method (I): Using Firefox's Preferences menu: (preferred)

A. From Firefox's global menu, select Edit -> Preferences (or press Alt + E followed by N) to open Firefox Preferences.

(Snapshot taken in Ubuntu 12.04)

B. Select the Applications menu and search for BitTorrent seed file or application/x-bittorrent or torrent. Change the Always ask or Use gedit (default) to transmission-gtk by selecting Use other... and click File System in the side bar, then browse to /usr/bin.

C. In /usr/bin search for transmission-gtk and double click to open.

D. That's it! Now the .torrent files will be opened with transmission.

Method (2): Editing the mimeTypes.rdf file:

Step 1:

Open the mimeTypes.rdf file with text editor of your choice:

(Save a backup of this file.) Search for the container:

and insert this:

so that, now the container looks something like this:

(step 1 snapshot)

Step 2:

Now, within the container:

Youtube By Click Download

insert these:

so that the container will look something like this:

(step 2 snapshot)

Step 3:

Save and close the file. Then restart firefox.


Open the Firefox preferences window. Go to the Applications tab and you should see magnet on the list. Click on Always ask and if Transmission does not appear as an option then click on Use other and navigate to /usr/bin on your file system. Look for transmission or transmission-gtk and click that.

Source: How to make Firefox open magnet-links in Transmission

If magnet didn't show up in the applications tab, then you should do this via about:config as explained below:

  • Type about:config into the address bar and press Enter.
  • Right-click -> New -> Boolean -> Name: network.protocol-handler.external.magnet -> Value ->true
  • Right-click -> New -> String -> Name: network.protocol-handler.app.magnet -> Value ->/usr/bin/transmission
  • Ensure network.protocol-handler.expose-all is set to true

Source: Magnet links in Firefox using Transmission

Community
Janith ChinthanaJanith Chinthana

Another more user-friendly way to add a new file type to the Edit -> Preferences -> Applications window is by downloading a file that has the file format you want to add, selecting any option, and selecting the 'Do this automatically for files like this from now on.' checkbox. Source: firefox doc.

Mike SmithMike Smith

Next time you download a torrent file, and the window pops up to ask what to do, give the path for the file to open with: /usr/bin/transmission-gtk and select it. All done.

ASCIIbeticalASCIIbetical

The answer depends on whether the server sends you the correct mime type (not just the file with the right extension). You can check whether the server is sending the correct mime type by installing the Live HTTP Headers addon for Firefox. (Start the addon just before you click on the download link for the torrent file, and watch the response header, it should contain: Content-Type: application/x-bittorrent.) If it does, then Firefox will be able to open the file with the default application currently setup on your computer. In Ubuntu you can download a torrent file, then right click and select 'Properties', there you will find a way to select the default application.

If, however, the server sends .torrent as an octet-stream or some other weird mime, then Firefox will NOT do the stupid thing and open it by extension (like some broken browsers do), since that can lead to very bad results. But every so often you are willing to take a risk, you can try https://addons.mozilla.org/en-US/firefox/addon/force-content-type/, but keep in mind that this extension is considered buggy and may actually make the matters worse.

If the server is doing it wrongly, and you are not willing to take risks, you can simply have Transmission monitor your download folder and automatically add torrent files you place there. It can even remove the files after it added them. You will find that in the settings of Transmission.

P.S. Should you need a way to keep other application as the default when double clicking, but transmission only from firefox, you can follow instructions at http://forums.mozillazine.org/viewtopic.php?f=9&t=1706945

v010dyav010dya

A little bit more up-to-date solution (here, specifically Ubuntu 16.04 + FireFox 51.0.1). Useful if 'torrent' doesn't appear in the Applications Menu; specially if the prompt doesn't give you the 'open with' option.

Two important things for torrents: Magnet Links and Torrent Files

Magnet Links: at the address bar, type about:config.

Proceed with caution, as told, and right-click > new > boolean; in the prompt type:

Set it to false (it's important).

Then, go to somewhere with magnet links and open one of them; it'll ask which program you want to use to handle the link. I haven't used windows for some time so I'll step aside, but in Ubuntu and some other distros you'll select a file like /usr/bin/transmission (if you use transmission).

Let's say you use Tixati or 'pen-pineapple-appe-pen'; then, it would look, respectively, like /usr/bin/tixati or /usr/bin/pen-pineapple-appe-pen.

Set 'use this always' or a similar option and probably you'll be good to go.

Change What Opens Click Download Torrent For Mac

Torrent Files: there are some more arcane methods certainly, but a simple one that works --- if the download prompt doesn't give you an 'open with' option --- is:

Download some random torrent file you'd like to use.

Go to the top-bar and File > Open file (or Ctrl+O) and open the torrent file.

Torrent

Firefox, most likely will have no clue what to do with it --- well, not exactly --- and will ask you where to open it. Select the program you want (probably in the /usr/bin/ folder for most linux users), tell it to remember and you should be good to go, since from now on it'll give you the option to automatically open torrents with your desired program.

IvanIvan

Unfortunately, there are no such preferences available in Firefox anymore. Mozilla has removed all such functionality.

user503846user503846

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

Go to Start / Default programs / Associate a File or Protocol with a program and then scroll the list until you see the extension of the file you want to open. The list will tell you which is the default program for opening that type of file. You can change the default program by clicking on Change and either selecting another option from the list provided or browse to the executable programs of the program you wish to use. In your case, you would change the extension to winword.exe (not sure where it is on your system - but you can search for it).
Here's how to search the entire C: drive for the file (in case the standard search doesn't work):


To search the entire C: drive in Vista go to Start / Search Box and type in ‘<filename> or <foldername>’. As you're typing you'll see two hyperlinks appear just above where you're typing and one will say Search Everywhere. Click on that. That will do a quick indexed search and bring up a dialog box. Click on Advanced Search. Click on the location drop down menu and find Drive C: and click on it. Check the box 'include non-indexed, hidden, and system files (may be slow).' Then click on Search. You will now be searching your entire hard drive for the specified file. And yes, it's not a very efficient way of searching the entire drive for a file but that's how it's done in Vista.


When a program installs, it installs with a default program for opening its files. You can check the Associations list (though that is long) or you can just double click on such a file and the system will open it using the default program. The latter is the easiest way to do it and if you want to change it, then you can go to the associations dialog box to do so. Most people allow the defaults to remain except for photos and pictures (and audio and video) where people use various programs for various things and so they often change the defaults for .jpg, .tiff, .gif, .wav, .mov, and others like that. Another common file extension to change is .zip since Windows Vista comes only with basic functionality and many people download supplemental programs to replace it (and hence want .zip opened with a supplemental program).
I hope this helps.
Good luck!

Lorien - One - MCSE/MCSA/Network+/A+