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.
Ubuntu – How to get Firefox to open torrent files with Transmission
bittorrentfirefox
Related Question
- Ubuntu – Where is Tor Browser opening Transmission from? How to open the “same” Transmission
- Ubuntu – I can’t find the file ‘transmission’ on the computer with the search function
- Ubuntu – transmission torrent won’t reconnect to data folder
- Ubuntu – Firefox Quantum : HTML files from internal storage (/usr) do not open
- Ubuntu – How to download multiple torrent links using transmission-daemon
Best Answer
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:
insert these:
so that the container will look something like this:
(step 2 snapshot)
Step 3:
Save and close the file. Then restart firefox.