Skip to content

How do you get magnet links to automatically open in Deluge? Can't really find any info on this.

I'm using i3. Googling hasn't brought up any useable info, sadly. I'm thinking it needs to be handled by xdg-open, but how is it configured?

3 points8 comments
Open on Reddit
About this post
Posted
Archived
Score
3 · 100% up
Kind
Text
ID
ror5j

Author

13
posts
102
comments
0
media
View profile

8 comments

I got it to wok by modifying /usr/bin/xdg-open and inserting 'deluge' into the BROWSER var.

\i.e (as in my case) replace

BROWSER=firefox:mozilla:epiphany:konqueror:chromium-browser:google-chrome:$BROWSER

with

BROWSER=firefox:mozilla:epiphany:konqueror:deluge:chromium-browser:google-chrome:$BROWSER

*apologies for formatting faux paus if any :)

3 points

I have no clue but after I uninstalled transmission it started using deluge.

2 points

xdg-open opens a file or URL in the user's preferred application. If a URL is provided the URL will be opened in the user's preferred web browser. If a file is provided the file will be opened in the preferred application for files of that type. xdg-open supports file, ftp, http and https URLs.

—xdg-open(1) manual page

It appears xdg-open doesn't handle the mapping of protocols to programs, so the path of least resistance would be to configure your browser to handle them. However, xdg-open is just a shell script, so you should be able to edit it and hack in the ability easily.

2 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.