Re: Associating file types with apps
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. -- [tim@localhost ~]$ uname -rsvp Linux 4.16.7-100.fc26.x86_64 #1 SMP Wed May 2 21:45:56 UTC 2018 x86_64 Boilerplate: All mail to my mailbox is automatically deleted. There is no point trying to privately email me, I only get to see the messages posted to the mailing list. - Mwuu haha ha h, soon the world will be mine! - Sir, you've got to take your finger off the intercom button. ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org/message/FAJ7FQWQVALE4AB7FFUCCLXVBGF7HZEC/
Re: Associating file types with apps
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. ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org/message/HVWR6KQLNH46HJZVN24EEHXI35G3OUC4/
Re: Associating file types with apps
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 ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org/message/UQDLMM2ECWPJI6OUNVQL4EX4P4RBMP5J/
Re: Associating file types with apps
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. ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org/message/6YGEWSY2AJ3LIR3RXZKC55ZZHTTKOVBU/
Re: Associating file types with apps
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 ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org/message/XTIPCU4TMERN2KCPSYUVTCTHQ2P3DLJ4/
Re: Associating file types with apps
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. ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org/message/JZEGTFBVCUERALKKL7R4CU3OG3B7XDL5/
Re: Associating file types with apps
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=Life.in.Pieces.S03E21.HDTV.x264-SVA=udp%3A%2F%2Ftracker.leechers-paradise.org%3A6969=udp%3A%2F%2Fzer0day.ch%3A1337=udp%3A%2F%2Fopen.demonii.com%3A1337=udp%3A%2F%2Ftracker.coppersurfer.tk%3A6969=udp%3A%2F%2Fexodus.desync.com%3A6969 in ktorrent -- Conjecture is just a conclusion based on incomplete information. It isn't a fact. signature.asc Description: OpenPGP digital signature ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org/message/3ZBCMMERQHHONPJ2U7RQ6URTVMDRAW6B/