You are not logged in.

#1 2014-06-12 07:06:25

starthis
Member
Registered: 2004-12-25
Posts: 46

xdg-open, magnets and KDE

I had a problem to open magnet files from chromium. The torrent client didn't seem to launch.

$ xdg-mime query default "x-scheme-handler/magnet"
transmission-qt.desktop

mime type seemed to be linked to the correct application.

Trying to launch xdg-open from terminal :

$ xdg-open "magnet:?somemagnet"
QWidget: Cannot create a QWidget when no GUI is being used
/usr/bin/xdg-open: line 513:  1568 Aborted                 (core dumped) kde-open --noninteractive "$1"

I don't know why this doesn't work, or why I can't find any reference of other people with the same problem.
I resolved the problem by patching xdg-open. I removed the --noninteractive flag from kde-open command, and all seems to work fine now. Still it troubles me why the xdg-open script doesn't work out of the box. Any ideas?

Offline

#2 2014-06-12 09:14:07

joschi
Member
Registered: 2009-12-26
Posts: 4

Re: xdg-open, magnets and KDE

I have the same problem since upgrading to KDE 4.13.2 (although with HTTP and HTTPS hyperlinks instead of magnet links).

Offline

#3 2014-06-12 09:47:36

Awebb
Member
Registered: 2010-05-06
Posts: 6,309

Re: xdg-open, magnets and KDE

Make sure you have everything up to date, then go and report the bug for xdg-open.

EDIT:
Here, some foot work, because I might hit the problem soon as well: https://bugs.freedesktop.org/

Last edited by Awebb (2014-06-12 09:49:37)

Offline

#4 2014-06-12 10:05:20

joschi
Member
Registered: 2009-12-26
Posts: 4

Re: xdg-open, magnets and KDE

Related bug reports in xdg-utils and KDE:

Bug 269823 - kde-open --noninteractive foo.noassoc crashes
Bug 16295 - xdg-open is inconsistent across desktop environments (also see http://cgit.freedesktop.org/xdg/xdg-uti … bf7ce76cb3)

EDIT: I've opened a bug report at KDE: https://bugs.kde.org/show_bug.cgi?id=336117
EDIT: And there's already a bug report in Arch: https://bugs.archlinux.org/task/40795

Last edited by joschi (2014-06-12 12:24:56)

Offline

#5 2014-06-13 12:44:00

Nowaker
Member
From: Gdańsk, Poland
Registered: 2011-10-26
Posts: 20
Website

Re: xdg-open, magnets and KDE

What's interesting, `kde-open url` (without --noninteractive) works OK.

So you can get it working with some hacking involved (replace kde-open with script that doesn't use --noninteractive when calling original kde-open).

Offline

#6 2014-06-20 04:36:08

hagabaka
Member
Registered: 2010-12-15
Posts: 34

Re: xdg-open, magnets and KDE

I'm also having this problem. This bug report seems to be more related:
Bug 336117 - "kde-open --noninteractive" crashes for HTTP(S) URIs

Although I don't have the problem with HTTP(S) URIs, it is similar in that kde-open only fails with --noninteractive.

Offline

Board footer

Powered by FluxBB