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.
How can I do this? You'd think it would be easy, but I've searched and haven't found anything recent.
Thanks, Alex
On 05/31/18 05:17, Alex wrote:
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.
How can I do this? You'd think it would be easy, but I've searched and haven't found anything recent.
I always, like now, forget the commands to do this. So, I just edit the file ~/.config/mimeapps.list
In the section [Default Applications] I have
x-scheme-handler/magnet=ktorrent.desktop;
This causes chrome, or any browser, to open links like
magnet:?xt=urn:btih:3da4d10aa513f572132accd9088b9f5103409610&dn=Life.in.Pieces.S03E21.HDTV.x264-SVA&tr=udp%3A%2F%2Ftracker.leechers-paradise.org%3A6969&tr=udp%3A%2F%2Fzer0day.ch%3A1337&tr=udp%3A%2F%2Fopen.demonii.com%3A1337&tr=udp%3A%2F%2Ftracker.coppersurfer.tk%3A6969&tr=udp%3A%2F%2Fexodus.desync.com%3A6969
in ktorrent
On 05/30/2018 02:17 PM, Alex wrote:
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.
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
On 05/30/2018 03:24 PM, Alex wrote:
$ xdg-mime query default application/x-bittorrent deluge.desktop
Good.
$ xdg-mime query my-torrent-file.torrent xdg-mime: unknown query type 'my-torrent-file.torrent' Try 'xdg-mime --help' for more information.
You missed a parameter. It should have been: xdg-mime query filetype my-torrent-file.torrent
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
That's magnet links, not torrent files.
Hi,
$ xdg-mime query default application/x-bittorrent deluge.desktop
Good.
$ xdg-mime query my-torrent-file.torrent xdg-mime: unknown query type 'my-torrent-file.torrent' Try 'xdg-mime --help' for more information.
You missed a parameter. It should have been: xdg-mime query filetype my-torrent-file.torrent
Ah, thank you.
$ xdg-mime query filetype my-torrent-file.torrent application/x-bittorrent
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
That's magnet links, not torrent files.
Ah, right. So should the proper entry be 'torrent' or 'bittorrent'?
x-scheme-handler/magnet=deluge.desktop; x-scheme-handler/torrent=deluge.desktop; x-scheme-handler/bittorrent=deluge.desktop;
Can I just restart deluge or do I have to restart gnome?
Thanks, Alex
On 05/30/2018 03:43 PM, Alex wrote:
$ xdg-mime query filetype my-torrent-file.torrent application/x-bittorrent
So that's good as well.
Ah, right. So should the proper entry be 'torrent' or 'bittorrent'?
x-scheme-handler/magnet=deluge.desktop; x-scheme-handler/torrent=deluge.desktop; x-scheme-handler/bittorrent=deluge.desktop;
Neither. That would be for if you have torrent:// links. The proper entry would be: application/x-bittorrent=deluge.desktop;
But that shouldn't be necessary since it's already associated.
Can I just restart deluge or do I have to restart gnome?
Neither. Deluge doesn't care and Gnome should auto-detect the change. However, it seems the problem is with Chrome. I know with Firefox you can set whether to just save or else open an application with a downloaded file, but I don't know where that would be set with Chrome.
Allegedly, on or about 30 May 2018, Samuel Sieb sent:
However, it seems the problem is with Chrome. I know with Firefox you can set whether to just save or else open an application with a downloaded file, but I don't know where that would be set with Chrome.
One thing to check is whether it's all such links, or just from one website. If a website is providing links with the wrong MIME type headers, that's going to confuse things, no end.