gnome-remote-dsktop: add requested user

This fixes:
WARNING: gnome-image-1.0-r0 do_rootfs: User gnome-remote-desktop has never been defined

Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Markus Volk 2025-04-16 15:44:09 +02:00 committed by Khem Raj
parent cf98490262
commit 46394a2e5f
No known key found for this signature in database
GPG Key ID: BB053355919D3314

View File

@ -4,7 +4,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
GNOMEBASEBUILDCLASS = "meson"
inherit gnomebase gettext gsettings features_check
inherit gnomebase gettext gsettings features_check useradd
REQUIRED_DISTRO_FEATURES = "opengl polkit"
@ -36,5 +36,19 @@ PACKAGECONFIG[vnc] = "-Dvnc=true,-Dvnc=false,libvncserver"
PACKAGECONFIG[rdp] = "-Drdp=true,-Drdp=false,freerdp3 fuse3 libxkbcommon shaderc-native"
PACKAGECONFIG[systemd] = "-Dsystemd=true,-Dsystemd=false,systemd"
do_install:append() {
install -d ${D}${sysconfdir}/tmpfiles.d
echo "d ${localstatedir}/lib/gnome-remote-desktop 700 gnome-remote-desktop gnome-remote-desktop - -" > ${D}${sysconfdir}/tmpfiles.d/gnome-remote-desktop.conf
}
USERADD_PACKAGES = "${PN}"
USERADD_PARAM:${PN} = " \
--system \
--no-create-home \
--user-group \
--home-dir ${localstatedir}/lib/gnome-remote-desktop \
gnome-remote-desktop \
"
PACKAGE_DEBUG_SPLIT_STYLE = "debug-without-src"
FILES:${PN} += "${systemd_user_unitdir} ${systemd_system_unitdir} ${datadir} ${libdir}/sysusers.d ${libdir}/tmpfiles.d"