[Portland-bugs] [Bug 105836] New: xdg-open not setting default handler for x-scheme-handler/magnet

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sat Mar 31 20:54:51 UTC 2018


https://bugs.freedesktop.org/show_bug.cgi?id=105836

            Bug ID: 105836
           Summary: xdg-open not setting default handler for
                    x-scheme-handler/magnet
           Product: Portland
           Version: 1.1.0 rc3
          Hardware: x86-64 (AMD64)
                OS: Linux (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: xdg-utils
          Assignee: portland-bugs at lists.freedesktop.org
          Reporter: boojum at stercus-accidit.com

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 bug 96472, 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.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/portland-bugs/attachments/20180331/7eb64c32/attachment.html>


More information about the Portland-bugs mailing list