Hi,
> I have a fedora28 desktop with the latest version of chrome-beta
and
> would like to be able to click on torrent files and have them be
> opened automatically in deluge instead of just being downloaded and
> stored in my Downloads directory.
>
> It looks like the files are already associated with deluge when they
> are clicked, but I'd like Chrome to pass it directly to deluge instead
> of just downloading it.
Unfortunately, there appears to be more than one place and I don't know
which one Chrome uses. From a terminal what is the output of "xdg-mime
query filetype /path/to/file.torrent" (use a real file) and "xdg-mime query
default application/x-bittorrent"? The other place is in Gnome or Nautilus.
Right-click a torrent file in Nautilus and click properties. If there's an
"open with" tab, you can change it there. Otherwise, right-click and select
"open with..." from the menu. I've seen suggestions that Chrome uses the
xdg info so I would suggest starting there.
$ xdg-mime query default application/x-bittorrent
deluge.desktop
$ xdg-mime query my-torrent-file.torrent
xdg-mime: unknown query type 'my-torrent-file.torrent'
Try 'xdg-mime --help' for more information.
So it looks like the default bittorrent file is already associated with deluge.
I've also checked ~/.config/mimeapps.list and it's already associated
with deluge:
$ grep magnet ~/.config/mimeapps.list
x-scheme-handler/magnet=deluge.desktop;
x-scheme-handler/magnet=deluge.desktop
The first one is with [Added Associations] and the second is with
[Default Applications]
Thanks,
Alex