Bug 469319 - Integrate patch for QTBUG-113143 "QGenericUnixServices::openDocument / xdgDesktopPortalOpenFile fails in flatpak"
Summary: Integrate patch for QTBUG-113143 "QGenericUnixServices::openDocument / xdgDes...
Status: REPORTED
Alias: None
Product: Qt/KDE Flatpak Runtime
Classification: Developer tools
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Aleix Pol
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-03 16:35 UTC by Christian Halaszovich
Modified: 2023-06-07 11:20 UTC (History)
2 users (show)

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


Attachments
Patch from Qt for QTBUG-113143 (1.19 KB, application/x-zip-compressed)
2023-05-03 16:35 UTC, Christian Halaszovich
Details

Note You need to log in before you can comment on or make changes to this bug.
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