commit: 97e7889ff8bd49e52fe72d5408ccd4bf6659ee22
Author: Anna (navi) Figueiredo Gomes <navi <AT> vlhl <DOT> dev>
AuthorDate: Thu Feb 27 10:51:00 2025 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Feb 28 12:07:08 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=97e7889f
sys-apps/xdg-desktop-portal: add user initd
Signed-off-by: Anna (navi) Figueiredo Gomes <navi <AT> vlhl.dev>
Signed-off-by: Sam James <sam <AT> gentoo.org>
sys-apps/xdg-desktop-portal/files/xdg-desktop-portal.initd | 11 +++++++++++
...rtal-1.18.4.ebuild => xdg-desktop-portal-1.18.4-r1.ebuild} | 6 ++++--
sys-apps/xdg-desktop-portal/xdg-desktop-portal-1.18.4.ebuild | 2 +-
3 files changed, 16 insertions(+), 3 deletions(-)
diff --git a/sys-apps/xdg-desktop-portal/files/xdg-desktop-portal.initd
b/sys-apps/xdg-desktop-portal/files/xdg-desktop-portal.initd
new file mode 100644
index 000000000000..5fe428be554f
--- /dev/null
+++ b/sys-apps/xdg-desktop-portal/files/xdg-desktop-portal.initd
@@ -0,0 +1,11 @@
+#!/sbin/openrc-run
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License, v2 or later
+
+depend() {
+ need dbus
+}
+
+DBUS_SESSION_BUS_ADDRESS="unix:path=${XDG_RUNTIME_DIR}/bus"
+supervisor=supervise-daemon
+command="/usr/libexec/xdg-desktop-portal"
diff --git a/sys-apps/xdg-desktop-portal/xdg-desktop-portal-1.18.4.ebuild
b/sys-apps/xdg-desktop-portal/xdg-desktop-portal-1.18.4-r1.ebuild
similarity index 94%
copy from sys-apps/xdg-desktop-portal/xdg-desktop-portal-1.18.4.ebuild
copy to sys-apps/xdg-desktop-portal/xdg-desktop-portal-1.18.4-r1.ebuild
index 995a8b46daf0..6948deab963d 100644
--- a/sys-apps/xdg-desktop-portal/xdg-desktop-portal-1.18.4.ebuild
+++ b/sys-apps/xdg-desktop-portal/xdg-desktop-portal-1.18.4-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -13,7 +13,7 @@
SRC_URI="https://github.com/flatpak/${PN}/releases/download/${PV}/${P}.tar.xz"
LICENSE="LGPL-2.1"
SLOT="0"
-KEYWORDS="amd64 ~arm arm64 ~loong ~ppc ~ppc64 ~riscv x86"
+KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~x86"
IUSE="geolocation flatpak seccomp systemd test"
RESTRICT="!test? ( test )"
# Upstream expect flatpak to be used w/ seccomp and flatpak needs bwrap anyway
@@ -99,6 +99,8 @@ src_install() {
# for minimalist WMs etc.
insinto /usr/share/xdg-desktop-portal
newins "${FILESDIR}"/default-portals.conf portals.conf
+ exeinto /etc/user/init.d
+ newexe "${FILESDIR}"/xdg-desktop-portal.initd xdg-desktop-portal
}
pkg_postinst() {
diff --git a/sys-apps/xdg-desktop-portal/xdg-desktop-portal-1.18.4.ebuild
b/sys-apps/xdg-desktop-portal/xdg-desktop-portal-1.18.4.ebuild
index 995a8b46daf0..86612571b2ab 100644
--- a/sys-apps/xdg-desktop-portal/xdg-desktop-portal-1.18.4.ebuild
+++ b/sys-apps/xdg-desktop-portal/xdg-desktop-portal-1.18.4.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8