Bug 469319

Summary: Integrate patch for QTBUG-113143 "QGenericUnixServices::openDocument / xdgDesktopPortalOpenFile fails in flatpak"
Product: [Developer tools] Qt/KDE Flatpak Runtime Reporter: Christian Halaszovich <chalaszovich>
Component: generalAssignee: Aleix Pol <aleixpol>
Status: REPORTED ---    
Severity: normal CC: aacid, nicolas.fella
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Patch from Qt for QTBUG-113143

Description Christian Halaszovich 2023-05-03 16:35:30 UTC
Created attachment 158659 [details]
Patch from Qt for QTBUG-113143

SUMMARY
QGenericUnixServices::openDocument can fail when invoked from inside flatpak sandbox with read-only files.
This has been reported to Qt upstream as QTBUG-113143. For Qt6.6.0 this has been fixed (commit 03cbcba7b2b0e42a04033a008c7fac87595e7f35, https://codereview.qt-project.org/c/qt/qtbase/+/475425).
It seems a fix for Qt6.5 is also planned (but not included in Qt6.5.0). So the bug will be with us in the runtime for a few months or so, I guess.

I see that there are a few patches that are applied during the build of the runtime.
Would it be possible to include the patch for QTBUG-113143 in the current build of the KDE flatpak runtime?

Qt Version: 6.4.3
Comment 1 Albert Astals Cid 2023-05-03 20:14:07 UTC
Chances of the patch getting applied increase if you submit a MR https://invent.kde.org/packaging/flatpak-kde-runtime