Bug 507325 - Implement support for OpenURI portal
Summary: Implement support for OpenURI portal
Status: RESOLVED WORKSFORME
Alias: None
Product: xdg-desktop-portal-kde
Classification: Plasma
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-07-21 18:38 UTC by Nate Graham
Modified: 2025-07-21 19:26 UTC (History)
4 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nate Graham 2025-07-21 18:38:01 UTC
https://flatpak.github.io/xdg-desktop-portal/docs/doc-org.freedesktop.portal.OpenURI.html

This will allow us to implement support for org.freedesktop.portal.OpenURI.OpenDirectory in KIO::highlightInFileManager, which will make that functionality work in all KIO-using Flatpak apps in a supported manner.

Right now the functionality does not work at all due to lack of ability to talk to the org.freedesktop.FileManager1 dbus bus name.

Alternative methods of resolving this issue include:
1. Whitelist org.freedesktop.FileManager1 in KDE's SDK
2. Whitelist org.freedesktop.FileManager1 in individual KDE apps' Flatpak manifests

#1 has proven controversial; see https://invent.kde.org/packaging/flatpak-kde-runtime/-/merge_requests/260#note_1260266

#2 will require an unbounded amount of manual work, therefore being error-prone the time-inefficient
Comment 1 Nate Graham 2025-07-21 19:09:18 UTC
It's possible this was opened in error, the result of me not being able to find it in our portal implementation. But according to https://invent.kde.org/packaging/flatpak-kde-runtime/-/merge_requests/260#note_1265518, it's possible it's built into the base portal already.
Comment 2 Harald Sitter 2025-07-21 19:10:24 UTC
openuri is not a frontend-backed portal https://flatpak.github.io/xdg-desktop-portal/docs/impl-dbus-interfaces.html

What makes you think this needs implementing on our end?
Comment 3 Nate Graham 2025-07-21 19:14:27 UTC
Most likely ignorance of how this stuff works under the hood. Are you saying that it's just a DBus method we can call?
Comment 4 Harald Sitter 2025-07-21 19:15:58 UTC
Yes. The page you link to is the api an app developer can call to do things. xdg-desktop-portal then translates those calls into host level calls to the FileManager1 interface
Comment 5 Nate Graham 2025-07-21 19:16:42 UTC
Oh all right, great.
Comment 6 Nate Graham 2025-07-21 19:26:46 UTC
So then the actual thing we need to do is in Bug 507330.