From 3badeb469540d45f1be6407da709db5c1b3cb68b Mon Sep 17 00:00:00 2001 From: Michael Catanzaro Date: Fri, 8 Apr 2022 13:41:01 -0500 Subject: [PATCH] Improve Supplements This backend is needed for GTK 4, not just GTK 3. It's needed for RHEL too, not just Fedora. And it's needed even if you don't use flatpak or snap, because host apps can use portals too. https://pagure.io/fedora-workstation/issue/298 --- xdg-desktop-portal-gtk.spec | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/xdg-desktop-portal-gtk.spec b/xdg-desktop-portal-gtk.spec index c8bf310..3313778 100644 --- a/xdg-desktop-portal-gtk.spec +++ b/xdg-desktop-portal-gtk.spec @@ -21,10 +21,12 @@ BuildRequires: systemd-rpm-macros Requires: dbus Requires: gsettings-desktop-schemas Requires: xdg-desktop-portal >= %{xdg_desktop_portal_version} -%if 0%{?fedora} -# Use rich deps to pull in this package when gtk3 and flatpak (or snapd) are both installed -Supplements: (gtk3 and (flatpak or snapd)) -%endif + +# This portal is recommended if you have installed any app that uses GTK. (It's +# also recommended if you have any such app installed via flatpak or snap, but +# that is impossible to detect here.) +Supplements: gtk3 +Supplements: gtk4 %description A backend implementation for xdg-desktop-portal that is using GTK+.