Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#4308 closed Bug (fixed)

Open with Transmission from Firefox doesn't work since Transmission 2.30

Reported by: howl Owned by: jordan
Priority: Normal Milestone: 2.32
Component: GTK+ Client Version: 2.30
Severity: Normal Keywords:
Cc:

Description

With Transmission 2.31 (haven't tried 2.30) when browsing a torrent link from firefox and choosing open with Transmission the torrent file is downloaded by firefox to it's temp dir but then nothing happens. Opening the torrents from nautilus works as usual.

Attachments (2)

Screen shot 2011-06-05 at 6.50.01 PM.png (124.6 KB) - added by x190 10 years ago.
Firefox magnet association
Screen shot 2011-06-05 at 7.00.10 PM.png (131.6 KB) - added by x190 10 years ago.
Firefox BitTorrent? Document association.

Download all attachments as: .zip

Change History (17)

comment:1 Changed 10 years ago by howl

  • Summary changed from Open with Transmission from Firefox doesn't since Transmission 2.31 to Open with Transmission from Firefox doesn't work since Transmission 2.31

comment:2 Changed 10 years ago by livings124

  • Resolution set to duplicate
  • Status changed from new to closed

comment:3 follow-up: Changed 10 years ago by howl

  • Resolution duplicate deleted
  • Status changed from closed to reopened

I'm talking about GTK+ interface, not the Web Interface, so there is no jQuery involved here.

comment:4 in reply to: ↑ 3 ; follow-up: Changed 10 years ago by rb07

  • Resolution set to invalid
  • Status changed from reopened to closed

Replying to howl:

I'm talking about GTK+ interface, not the Web Interface, so there is no jQuery involved here.

<deleted wrong answer, mixed up with plugin for using a remote daemon>

You are talking about link association, Firefox is configured to open .torrent files with Transmission GTK+.

That could be tested by hand on a terminal, "transmission sample.torrent" where sample.torrent is a file you saved instead of opening (context menu).

Last edited 10 years ago by rb07 (previous) (diff)

comment:5 Changed 10 years ago by howl

  • Resolution invalid deleted
  • Status changed from closed to reopened

What plugin? Vanilla install of firefox with Transmission 2.2x torrents can be added by using firefox's open with, but with Transmission 2.31 no.

comment:6 Changed 10 years ago by livings124

Have you tried a current nightly build?

comment:7 in reply to: ↑ 4 Changed 10 years ago by howl

Replying to rb07:

Replying to howl:

I'm talking about GTK+ interface, not the Web Interface, so there is no jQuery involved here.

<deleted wrong answer, mixed up with plugin for using a remote daemon>

You are talking about link association, Firefox is configured to open .torrent files with Transmission GTK+.

That could be tested by hand on a terminal, "transmission sample.torrent" where sample.torrent is a file you saved instead of opening (context menu).

Calling from command-line works like it works with nautilus, I'm starting to think about a firefox problem but I can't remember an update of it when I updated transmission, so I will try to test with olders firefox versions when i have time and also the nightly as livings says and I should have done before.

comment:8 Changed 10 years ago by rb07

In Firefox's Tools+Options+Applications, there is a definition associating application/x-bittorrent (shown as an app name and optionally the MIME type) to "somethig", my guess is that "something" is not Transmission, another application was installed and it over-wrote your configuration.

Last edited 10 years ago by rb07 (previous) (diff)

Changed 10 years ago by x190

Firefox magnet association

comment:9 Changed 10 years ago by x190

Firefox->Prefs->Applications.

Changed 10 years ago by x190

Firefox BitTorrent? Document association.

comment:10 Changed 10 years ago by howl

I have firefox to ask always but the only possible choice I have is Transmission. The only installations I do with other bittorrent clients are inside VM to test new versions reports, but in the main system I only have Transmission for normal use.

comment:11 Changed 10 years ago by howl

Got it.

diff -Nru transmission-2.21/gtk/transmission-gtk.desktop.in transmission-2.30/gtk/transmission-gtk.desktop.in
--- transmission-2.21/gtk/transmission-gtk.desktop.in	2011-02-08 21:14:20.000000000 +0000
+++ transmission-2.30/gtk/transmission-gtk.desktop.in	2011-05-17 00:06:21.000000000 +0000
@@ -3,10 +3,10 @@
 _GenericName=BitTorrent Client
 _X-GNOME-FullName=Transmission BitTorrent Client
 _Comment=Download and share files over BitTorrent
-Exec=transmission-gtk %F
+Exec=transmission-gtk %U
 Icon=transmission
 Terminal=false
 TryExec=transmission-gtk
 Type=Application
-MimeType=application/x-bittorrent;
+MimeType=application/x-bittorrent;x-scheme-handler/magnet;
 Categories=Network;FileTransfer;P2P;GTK;

Reverting %U to %F solves the problem, but i suppouse the change to %U have some reason.

comment:12 Changed 10 years ago by howl

I think the problem itself is Transmission not parsing file:// URIs. Doing transmission-gtk /tmp/file.torrent works and is a %F format, but when using %U the parameter string for file becomes file:///tmp/file.torrent (note the 3 slash after file: with only 2 totem says direction not found, so with the root dir 3 must be present) and transmission doesn't parse it. So transmission-gtk file:///tmp/file.torrent does nothing, but it should add the file or fail if duplicate as usual. With that fixed both local file URIs and magnet URIs should work at the same time.

Last edited 10 years ago by howl (previous) (diff)

comment:13 Changed 10 years ago by Calimero

This bug is general, because it happens with anything that complies to the Freedesktop norm. As explained in the previous comments, %U causes the applications that want to open a file with transmission-gtk to run "transmission-gtk file:///home/me/whatever.torrent".

And transmission-gtk doesn't support that argument format.

So, it should either be reverted to %F in the .desktop file to keep things consistent, or transmission-gtk should be modified to support the "file://" argument format.

comment:14 Changed 10 years ago by jordan

  • Milestone changed from None Set to 2.32
  • Resolution set to fixed
  • Status changed from reopened to closed

r12511 gtk/main.c: (trunk gtk) #4308 "Open with Transmission from Firefox doesn't work since Transmission 2.31" -- added support for uri-formmatted filenames being passed in via the command

comment:15 Changed 10 years ago by jordan

  • Summary changed from Open with Transmission from Firefox doesn't work since Transmission 2.31 to Open with Transmission from Firefox doesn't work since Transmission 2.30
  • Version changed from 2.31 to 2.30
Note: See TracTickets for help on using tickets.