xgd-open: qBittorrent & Deluge in competition

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
samiel60

xgd-open: qBittorrent & Deluge in competition

Post by samiel60 »

When i download a "magnet" file from Chrome (xdg-open),
sometimes it's opened by qBittorrent, other times by Deluge.
how is possible to set an unique program? From inside chrome?
I'm not able to produce a stable association, nor I find anything similar
in the mimetypes configuration files...

thanx
s
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
trytip
Level 14
Level 14
Posts: 5366
Joined: Tue Jul 05, 2016 1:20 pm

Re: xgd-open: qBittorrent & Deluge in competition

Post by trytip »

remove one client then open a torrent magnet in chrome. for a .torrent file you can just rightclick the .torrent/properties and open with whatever set it as default.

why are you having 2 torrent programs installed? it only cause issues like the one you have

or do what i do since firejail/chrome doesn't obey xdg-open anyway. if i download a .torrent i open qbittorrent then select the + for add torrent file. for magnet links i rightclick the magnet link/copy link location then in qbittorrent select add torrent link
Image
samiel60

Re: xgd-open: qBittorrent & Deluge in competition

Post by samiel60 »

ok thanx.
it's a dummy question, but better deluge or qbittorent?
gm10

Re: xgd-open: qBittorrent & Deluge in competition

Post by gm10 »

samiel60 wrote: Wed Jul 18, 2018 9:51 pm When i download a "magnet" file from Chrome (xdg-open),
sometimes it's opened by qBittorrent, other times by Deluge.
how is possible to set an unique program? From inside chrome?
I'm not able to produce a stable association, nor I find anything similar
in the mimetypes configuration files...
open ~/.config/mimeapps.list in a text editor and in the [Default Applications] section either find or add the line x-scheme-handler/magnet= followed by the name of the .desktop file for program you want to associate it with. You might also want to define the handler for application/x-bittorrent.
samiel60

Re: xgd-open: qBittorrent & Deluge in competition

Post by samiel60 »

@gm10
thanx, it works fine.
only a clarification:
what's the difference between
x-scheme-handler/magnet=x-scheme-handler/magnet=
and
application/x-bittorrent ?
thanx
gm10

Re: xgd-open: qBittorrent & Deluge in competition

Post by gm10 »

x-scheme-handler/magnet= defines the handler for magnet: links
application/x-bittorrent= defines the handler for .torrent files.
User avatar
trytip
Level 14
Level 14
Posts: 5366
Joined: Tue Jul 05, 2016 1:20 pm

Re: xgd-open: qBittorrent & Deluge in competition

Post by trytip »

no such thing as better or worse. pick one that you like stick with it and learn it's configurations and quirks if you do use firejail. i like qbittorrent because it gives me more privacy options. maybe tixati has more features, don't know i stuck with qbittorrent and don't need a new client. (although now i block upgrades and stay with qbittorrent 4.03, later versions seem to not obey speed limits , or could it be that libtorrent-rasterbar is not obeying, not sure)
if you don't know which one you like then, i guess this is your trial period.
Image
MrGrimm

Re: xgd-open: qBittorrent & Deluge in competition

Post by MrGrimm »

gm10 wrote: Wed Jul 18, 2018 11:15 pm
samiel60 wrote: Wed Jul 18, 2018 9:51 pm When i download a "magnet" file from Chrome (xdg-open),
sometimes it's opened by qBittorrent, other times by Deluge.
how is possible to set an unique program? From inside chrome?
I'm not able to produce a stable association, nor I find anything similar
in the mimetypes configuration files...
open ~/.config/mimeapps.list in a text editor and in the [Default Applications] section either find or add the line x-scheme-handler/magnet= followed by the name of the .desktop file for program you want to associate it with. You might also want to define the handler for application/x-bittorrent.
i need to fix mine and i need to know if this would be right before i actually edit any thing. thanks

Code: Select all

x-scheme-handler/magnet=deluge

Code: Select all

application/x-deluge
would simply uninstall konqueror, uninstall and reinstall deluge, but the damn thing says it will remove kde as well uninstalling konqueror.
User avatar
trytip
Level 14
Level 14
Posts: 5366
Joined: Tue Jul 05, 2016 1:20 pm

Re: xgd-open: qBittorrent & Deluge in competition

Post by trytip »

just backup or compress your .config/mimeapps.list
[Default Applications]
application/x-ms-dos-executable=wine.desktop
application/x-bittorrent=deluge.desktop
x-scheme-handler/http=google-chrome.desktop
x-scheme-handler/https=google-chrome.desktop
x-scheme-handler/magnet=deluge.desktop
if you don't use the .desktop extension then the /usr/bin/deluge executable will start which is not a big deal unless you use deluge with firejail. you want the protocol to be called from the .desktop entry
Image
MrGrimm

Re: xgd-open: qBittorrent & Deluge in competition

Post by MrGrimm »

no no sandbox or firefox. i'm way too careful to need a sandbox. thanks for the info, not sure what you mean by .desktop. there is a lot under the hood i still have no idea about.
User avatar
trytip
Level 14
Level 14
Posts: 5366
Joined: Tue Jul 05, 2016 1:20 pm

Re: xgd-open: qBittorrent & Deluge in competition

Post by trytip »

i see everything in the mimelist ending with the .desktop extension so i assume these are the correct values pasted in the very first section [Default Applications]

Code: Select all

application/x-bittorrent=deluge.desktop
x-scheme-handler/magnet=deluge.desktop
Image
MrGrimm

Re: xgd-open: qBittorrent & Deluge in competition

Post by MrGrimm »

trytip wrote: Wed Jan 02, 2019 11:48 am i see everything in the mimelist ending with the .desktop extension so i assume these are the correct values pasted in the very first section [Default Applications]

Code: Select all

application/x-bittorrent=deluge.desktop
x-scheme-handler/magnet=deluge.desktop
ah ok i got ya now. thanks for clarifying that, much appreciated.
Locked

Return to “Software & Applications”