Bug 388090

Summary: Wrong file handle from flatpak file dialog
Product: [Plasma] xdg-desktop-portal-kde Reporter: Marco Bubke <marco.bubke>
Component: generalAssignee: Jan Grulich <jgrulich>
Status: RESOLVED FIXED    
Severity: normal CC: jgrulich
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Marco Bubke 2017-12-20 19:29:48 UTC
As you allow the sand box to access the host file system and access the file over
the file dialog you get a very different path than the expected.

actual:
Access file /home/username/testproject/testproject.pro
=> /run/user/1001/doc/3b985a78/testproject.pro

expected:
Access file /home/username/testproject/testproject.pro
=> /home/username/testproject/testproject.pro

I think it is because the file dialog portal is not testing if the file access is 
permitted and sends always an opaque file handle.
Comment 1 Jan Grulich 2017-12-21 10:38:10 UTC
I discussed this with Flatpak developers and opened a bug here: https://github.com/flatpak/xdg-desktop-portal/issues/141
Comment 2 Marco Bubke 2017-12-21 12:17:27 UTC
Good, I was not sure it belonged to kde or flatpak in general. Thank you.
Comment 3 Jan Grulich 2021-06-22 19:21:51 UTC
I believe this is no longer a problem.