launch: Avoid specifically starting PA and rely on autospawn/socket activation
authorColin Guthrie <colin@mageia.org>
Fri, 17 Oct 2014 12:43:18 +0000 (14:43 +0200)
committerColin Guthrie <colin@mageia.org>
Mon, 3 Nov 2014 12:32:23 +0000 (12:32 +0000)
commit42156d2b5ac797e5f28f8d0d38b691053f3f6fc7
treea14dc6cb0dde2bfdf4128f71985546d01849b38f
parent467b4b9bee66257da7ce51c1158f9fe2178daac1
launch: Avoid specifically starting PA and rely on autospawn/socket activation

This --start is patched out in several downstreams to allow users to easily
disable PA by simply disabling autospawn.

If autospawn is enabled, then the first pactl command will start it and if not
it will fail and the script will exit.

When switching to systemd socket activation, we very much do not want to
start PA manually here. We could replace it with a
  systemctl --user start pulseaudio
but really it just makes sense to rely on the socket activation as this
should apply equally to non-systemd setups which use PA's own autospawn.
src/daemon/start-pulseaudio-x11.in