You are not logged in.
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
I have the same problem since upgrading to KDE 4.13.2 (although with HTTP and HTTPS hyperlinks instead of magnet links).
Offline
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
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
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
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