Also create a pipewire user, which is used for systemd service. There is
no sysvinit start script at the moment, but if there were, it should
also take care of changing the uid to pipewire before starting the
daemon.
Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
endif
ifeq ($(BR2_PACKAGE_SYSTEMD),y)
-PIPEWIRE_CONF_OPTS += -Dsystemd=enabled
+PIPEWIRE_CONF_OPTS += \
+ -Dsystemd=enabled \
+ -Dsystemd-system-service=enabled \
+ -Dsystemd-user-service=enabled
PIPEWIRE_DEPENDENCIES += systemd
else
-PIPEWIRE_CONF_OPTS += -Dsystemd=disabled
+PIPEWIRE_CONF_OPTS += \
+ -Dsystemd=disabled \
+ -Dsystemd-system-service=disabled \
+ -Dsystemd-user-service=disabled
endif
ifeq ($(BR2_PACKAGE_ALSA_LIB),y)
PIPEWIRE_CONF_OPTS += -Decho-cancel-webrtc=disabled
endif
+define PIPEWIRE_USERS
+ pipewire -1 pipewire -1 * - - - PipeWire System Daemon
+endef
+
$(eval $(meson-package))