From 534855e48daeceb02418f59abedeee821c2ce01a Mon Sep 17 00:00:00 2001 From: Tristan Van Berkom Date: Mon, 14 Dec 2015 14:19:41 +0900 Subject: Proper configuration of pulseaudio Pulseaudio normally runs as a user specific service and not a system service, some warnings were popping up because we had passed /lib/systemd/system as --systemduserunitdir (note that that is the *user* unit directory). Instead we now pass /usr/lib/systemd/user as the appropriate --systemduserunitdir which causes the .service and .socket files to be installed in the appropriate location, and systemd activates pulseaudio automatically via regular socket activation. Also, it is no longer necessary to use custom install commands creating a symlink for the service, as the service need not be "enabled", it is just activated upon request. Change-Id: Ic1a246643c45062a4432be3f739de9a7146e5e5e --- strata/audio-bluetooth/pulseaudio.morph | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/strata/audio-bluetooth/pulseaudio.morph b/strata/audio-bluetooth/pulseaudio.morph index e6c3672a..fabdc5da 100644 --- a/strata/audio-bluetooth/pulseaudio.morph +++ b/strata/audio-bluetooth/pulseaudio.morph @@ -6,12 +6,8 @@ pre-configure-commands: - NOCONFIGURE=1 ./bootstrap.sh configure-commands: - ./configure --prefix="$PREFIX" --localstatedir=/var --sysconfdir=/etc --with-database=simple - --with-systemduserunitdir=/lib/systemd/system + --with-systemduserunitdir=/usr/lib/systemd/user --with-system-user=pulse --with-system-group=pulse --with-access-group=pulse-access -install-commands: -- make DESTDIR="$DESTDIR" install -- mkdir -p "$DESTDIR/etc/systemd/system/multi-user.target.wants" -- ln -s /lib/systemd/system/pulseaudio.service "$DESTDIR/etc/systemd/system/multi-user.target.wants/pulseaudio.service" system-integration: pulseaudio-misc: 00-add-pulse-users: -- cgit v1.2.1