Bug 507325

Summary: Implement support for OpenURI portal
Product: [Plasma] xdg-desktop-portal-kde Reporter: Nate Graham <nate>
Component: generalAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: wishlist CC: aleixpol, kde, kdedev, sitter
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

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.