<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - xdg-open not setting default handler for x-scheme-handler/magnet"
href="https://bugs.freedesktop.org/show_bug.cgi?id=105836">105836</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>xdg-open not setting default handler for x-scheme-handler/magnet
</td>
</tr>
<tr>
<th>Product</th>
<td>Portland
</td>
</tr>
<tr>
<th>Version</th>
<td>1.1.0 rc3
</td>
</tr>
<tr>
<th>Hardware</th>
<td>x86-64 (AMD64)
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux (All)
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>xdg-utils
</td>
</tr>
<tr>
<th>Assignee</th>
<td>portland-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>boojum@stercus-accidit.com
</td>
</tr></table>
<p>
<div>
<pre>I'm on Arch Linux with xdg-utils 1.1.2.
Expected behaviour:
Opening a magnet link with xdg-open will open that link in the default
bittorrent application.
Actual behaviour:
Opening a magnet link with xdg-open opens the link with the browser. Probably
not the same as <a class="bz_bug_link
bz_status_REOPENED "
title="REOPENED - xdg-open opens magnet links in the browser instead of the default bittorrent application (suggested patch)"
href="show_bug.cgi?id=96472">bug 96472</a>, in my case $BROWSER variable is not set and xdg-mime
query comes back empty.
Steps to reproduce:
1. Set the default handler for magnet links: xdg-mime default rtm.desktop
x-scheme-handler/magnet
1a. Check if 1 was set succesfully:
$ cat ~/.config/mimeapps.list
[Default Applications]
x-scheme-handler/magnet=rtm.desktop
1b. Make sure that $BROWSER is not set:
$ echo $BROWSER
2. xdg-mime query is coming back up empty:
$ xdg-mime query default x-scheme-handler/magnet
3. Run `xdg-open magnet:?xt=foo`.
4. The magnet link will be opened by the browser instead of the default
application for magnet links.
Various blog posts suggested that the issue *might* be due to the xdg-open not
recognising DE properly - sadly, my shell-fu is not up to the task to asses it.
For what it's worth, I'm using a tiling wm instead of full-blown DE.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>