diff --git a/include/desktop/dbus/deploy.sh b/include/desktop/dbus/deploy.sh index 0a12d4c..83587ba 100644 --- a/include/desktop/dbus/deploy.sh +++ b/include/desktop/dbus/deploy.sh @@ -36,6 +36,18 @@ do_configure() make_dirs /run/dbus /var/run/dbus chmod 644 "${CHROOT_DIR}/etc/machine-id" chroot_exec -u root dbus-uuidgen > "${CHROOT_DIR}/etc/machine-id" + case "${DISTRIB}:${ARCH}:${SUITE}" in + archlinux:*) + local user_names="systemd-timesync systemd-network colord systemd-resolve polkitd avahi dbus" + for username in ${user_names} + do + chroot_exec -u root groupadd -f ${username} + chroot_exec -u root useradd -g ${username} -s /bin/false -d / ${username} + done + + chroot_exec -u root groupadd -f network + ;; + esac return 0 } diff --git a/include/desktop/xfce/deploy.sh b/include/desktop/xfce/deploy.sh index 4358305..9aeec8d 100644 --- a/include/desktop/xfce/deploy.sh +++ b/include/desktop/xfce/deploy.sh @@ -30,6 +30,12 @@ do_configure() { msg ":: Configuring ${COMPONENT} ... " local xsession="${CHROOT_DIR}$(user_home ${USER_NAME})/.xsession" - echo 'exec dbus-run-session xfce4-session' > "${xsession}" + local command='exec dbus-run-session xfce4-session' + case "${DISTRIB}:${ARCH}:${SUITE}" in + archlinux:*) + command='exec dbus-launch xfce4-session' + ;; + esac + echo ${command} > "${xsession}" return 0 }