gtorrentviewer cannot open a file described by a standard URI such as
"file:///foo.torrent" or "http://xxx".
Unfortunately, the desktop file contains a MimeType entry that registers
gtorrentviewer as a valid recipient for torrent files. So if you try to open a
torrent file from Nautilus with gtorrentviewer, gtorrentviewer can't open it
(Log tab says "no such file or directory"). Same if you execute a torrent link
from a web browser.
1) write a quick patch to add the URI support. Should be simple, as I believe
Gnome provides all that you need. I can help with the patch too.
2) Remove the MimeType entry from the desktop file, so that gtorrentviewer does
not show up as application when you right-click on a torrent file in Nautilus.
If you can provide a patch, it would be very useful. I'm not familiar with
programming in Gnome and upstream for this project appears to have gone away.
Created attachment 137113 [details]
Fixes desktop file exec argument
Actually, the solution is simpler than that. The desktop file should not
specify %U (means: accepts one or more URIs), but rather it should use %f
(accepts a single file argument). I looked at the code and it only supports a
single file as main argument. Drag'n'drop torrent files works correctly, as it
follows a different code path. Patch attached :-)
Patch is included in 0.2b-11, which should get released soon for FC-4, FC-5, and
Fix verified. Thanks!