ubuntu-sdk-bugs team mailing list archive
-
ubuntu-sdk-bugs team
-
Mailing list archive
-
Message #08160
[Bug 1876237] Re: QDesktopServices::openUrl() fails when called on local files from within a snap
This bug was fixed in the package qtbase-opensource-src - 5.15.9+dfsg-2
---------------
qtbase-opensource-src (5.15.9+dfsg-2) experimental; urgency=medium
* Bump years for 3rdparty copyright.
* Backport upstream patch to stop using O_PATH in OpenFile portal
(LP: #1876237).
* Add a patch to fix capitalization error in auto-generated qdbusmacros.h
include (LP: #2016703).
* Make qtbase5-private-dev suggest packages providing includes which are
used by some of its headers (closes: #1034830).
-- Dmitry Shachnev <mitya57@xxxxxxxxxx> Sat, 13 May 2023 18:27:14
+0300
** Changed in: qtbase-opensource-src (Ubuntu)
Status: New => Fix Released
--
You received this bug notification because you are a member of Ubuntu
SDK bug tracking, which is subscribed to qtbase-opensource-src in
Ubuntu.
https://bugs.launchpad.net/bugs/1876237
Title:
QDesktopServices::openUrl() fails when called on local files from
within a snap
Status in qtbase-opensource-src package in Ubuntu:
Fix Released
Bug description:
This is something we might want to fix to help people who build snaps
based on Focal's Qt.
The QGenericUnixServices implementation of openUrl() passes an O_PATH
file descriptor to xdg-desktop-portal when it detects it is running
under snap confinement. This is rejected because xdg-desktop-portal
expects an O_RDONLY file descriptor, leading to the operation failing.
More details are available in the upstream bug report I filed:
https://bugreports.qt.io/browse/QTBUG-83939
This originated from a report on the Snapcraft forum here:
https://forum.snapcraft.io/t/xdg-open-or-gvfs-open-qdesktopservices-
openurl-file-somelocation-file-txt-wont-open-the-file/16824?u=jamesh
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qtbase-opensource-src/+bug/1876237/+subscriptions
References