Bug 431864 - kde-open matrix URI doesn't work
Summary: kde-open matrix URI doesn't work
Status: RESOLVED WORKSFORME
Alias: None
Product: frameworks-kio
Classification: Frameworks and Libraries
Component: general (other bugs)
Version First Reported In: 5.77.0
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Jan Grulich
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-21 02:20 UTC by Nicolas Werner
Modified: 2022-02-17 04:36 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nicolas Werner 2021-01-21 02:20:10 UTC
SUMMARY

I registered a my application as a handler for the matrix: scheme, see here: https://github.com/Nheko-Reborn/nheko/blob/f47bedff23400e3b0788891f0ab0257dfc03a447/resources/nheko.desktop#L11

When installed globally, xdg-open works if I set the desktop platform to generic like this:

XDG_CURRENT_DESKTOP="X-Generic" xdg-open 'matrix:user/test:neko.dev?action=chat'

But if I use the default or kde-open5, it fails to open my application and complains about matrix: being an unknown protocol. It seems to know about my application though.


STEPS TO REPRODUCE
1. Install Nheko 0.8.0
2. xdg-open a matrix URI, like matrix:user/test:neko.dev?action=chat
3. Watch it not open Nheko but instead open an error message box.

OBSERVED RESULT

# LANG=C kde-open5 --interactive matrix:user/asdfhajsdf
command= "nheko" args= ("nheko", "matrix:user/asdfhajsdf")
kf.kio.core: Protocol Class of url QUrl("matrix:user/asdfhajsdf") , isn't ':local', cancelling job.
Copying QUrl("matrix:user/asdfhajsdf")  to QUrl("file:///home/nicolas/.cache/kioexec/krun/18898_0/asdfhajsdf")
kf.kio.core: couldn't create slave: "klauncher said: Unbekanntes Protokoll ?matrix?.\n"
All files downloaded, will call slotRunApp shortly
No files downloaded -> exiting

EXPECTED RESULT

It opens Nheko.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 5.20.4
(available in About System)
KDE Plasma Version: 5.20.4
KDE Frameworks Version: 5.77.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION

(No idea, if this is the right component)
Comment 1 Nicolas Fella 2022-01-18 20:13:59 UTC
Is this still happening?

kde-open 'matrix:user/test:neko.dev?action=chat' works fine for me on current Plasma master

Same when running it via portal
Comment 2 Nicolas Fella 2022-01-18 20:14:58 UTC
May be related to https://bugs.kde.org/show_bug.cgi?id=440062 (which I can reproduce)
Comment 3 Nicolas Fella 2022-01-18 21:39:52 UTC
See also https://invent.kde.org/frameworks/kio/-/merge_requests/719
Comment 4 Bug Janitor Service 2022-02-02 04:37:34 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 5 Bug Janitor Service 2022-02-17 04:36:56 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!