diff options
author | 2024-03-09 10:32:04 +0100 | |
---|---|---|
committer | 2024-03-09 10:57:22 +0100 | |
commit | 780a34ac50aedf131ad9840e910d026eab4ca256 (patch) | |
tree | f5fe9fc5853089758bccdae73ef6f0c4f4c452fc /xfce-base/xfce4-session | |
parent | media-sound/schismtracker: bump to 20240308 (diff) | |
download | gentoo-780a34ac50aedf131ad9840e910d026eab4ca256.tar.gz gentoo-780a34ac50aedf131ad9840e910d026eab4ca256.tar.bz2 gentoo-780a34ac50aedf131ad9840e910d026eab4ca256.zip |
xfce-base/xfce4-session: Install xdg-desktop-portal file
Closes: https://bugs.gentoo.org/915708
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'xfce-base/xfce4-session')
-rw-r--r-- | xfce-base/xfce4-session/xfce4-session-4.18.3-r1.ebuild (renamed from xfce-base/xfce4-session/xfce4-session-4.18.3.ebuild) | 14 | ||||
-rw-r--r-- | xfce-base/xfce4-session/xfce4-session-4.19.1-r1.ebuild (renamed from xfce-base/xfce4-session/xfce4-session-4.19.1.ebuild) | 14 |
2 files changed, 26 insertions, 2 deletions
diff --git a/xfce-base/xfce4-session/xfce4-session-4.18.3.ebuild b/xfce-base/xfce4-session/xfce4-session-4.18.3-r1.ebuild index 6c91ba8afe5f..0d8fcab79d15 100644 --- a/xfce-base/xfce4-session/xfce4-session-4.18.3.ebuild +++ b/xfce-base/xfce4-session/xfce4-session-4.18.3-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -66,6 +66,18 @@ src_install() { startxfce4 EOF dosym Xfce4 /etc/X11/Sessions/Xfce + + if [[ -f ${ED}/usr/share/xdg-desktop-portal/xfce-portals.conf ]]; then + die "Please remove the xfce-portals.conf hack" + fi + insinto /usr/share/xdg-desktop-portal + # https://gitlab.xfce.org/xfce/xfce4-session/-/blob/master/xfce4-session/xfce-portals.conf + newins - xfce-portals.conf <<-EOF + [preferred] + default=gtk; + org.freedesktop.impl.portal.Wallpaper=xapp;gtk; + org.freedesktop.impl.portal.Screenshot=xapp;gtk; + EOF } pkg_postinst() { diff --git a/xfce-base/xfce4-session/xfce4-session-4.19.1.ebuild b/xfce-base/xfce4-session/xfce4-session-4.19.1-r1.ebuild index 85ee23d89717..563047e907f0 100644 --- a/xfce-base/xfce4-session/xfce4-session-4.19.1.ebuild +++ b/xfce-base/xfce4-session/xfce4-session-4.19.1-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -65,6 +65,18 @@ src_install() { startxfce4 EOF dosym Xfce4 /etc/X11/Sessions/Xfce + + if [[ -f ${ED}/usr/share/xdg-desktop-portal/xfce-portals.conf ]]; then + die "Please remove the xfce-portals.conf hack" + fi + insinto /usr/share/xdg-desktop-portal + # https://gitlab.xfce.org/xfce/xfce4-session/-/blob/master/xfce4-session/xfce-portals.conf + newins - xfce-portals.conf <<-EOF + [preferred] + default=gtk; + org.freedesktop.impl.portal.Wallpaper=xapp;gtk; + org.freedesktop.impl.portal.Screenshot=xapp;gtk; + EOF } pkg_postinst() { |