x11-themes/QGnomePlatform: Fix window id for xdg-desktop-portal file chooser

Signed-off-by: Pacho Ramos <pacho@gentoo.org>
This commit is contained in:
Pacho Ramos
2022-04-26 12:29:33 +02:00
parent 6e42afc31a
commit 236f0d768a
2 changed files with 50 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
DESCRIPTION="A Qt Platform Theme aimed to accommodate GNOME settings"
HOMEPAGE="https://github.com/FedoraQt/QGnomePlatform"
SRC_URI="https://github.com/FedoraQt/QGnomePlatform/archive/${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
LICENSE="LGPL-2.1"
SLOT="0"
IUSE=""
RDEPEND="
dev-qt/qtdbus:5=
>=dev-qt/qtwidgets-5.15.2:5=
dev-qt/qtwayland:5=
dev-qt/qtx11extras:5=
gnome-base/gsettings-desktop-schemas
sys-apps/xdg-desktop-portal
x11-libs/gtk+:3[X]
>=x11-themes/adwaita-qt-1.4.1
"
DEPEND="${RDEPEND}"
BDEPEND="${RDEPEND}"
PATCHES=(
# https://github.com/FedoraQt/QGnomePlatform/issues/101
"${FILESDIR}/${P}-xdg-desktop-portal-id.patch"
)
src_configure() {
local mycmakeargs=(
-DUSE_QT6=false
)
cmake_src_configure
}

View File

@@ -0,0 +1,11 @@
--- a/src/theme/qxdgdesktopportalfiledialog.cpp~ 2022-01-11 10:46:15.000000000 +0100
+++ b/src/theme/qxdgdesktopportalfiledialog.cpp 2022-04-26 12:16:07.504955234 +0200
@@ -165,7 +165,7 @@
QLatin1String("/org/freedesktop/portal/desktop"),
QLatin1String("org.freedesktop.portal.FileChooser"),
d->saveFile ? QLatin1String("SaveFile") : QLatin1String("OpenFile"));
- QString parentWindowId = QLatin1String("x11:") + QString::number(d->winId);
+ QString parentWindowId = QLatin1String("x11:") + QString::number(d->winId, 16);
QVariantMap options;
if (!d->acceptLabel.isEmpty())