[pulseaudio-discuss] [PATCH 2/2] shell-completion: zsh: Rework pactl completion

2014-10-18 Thread Tanu Kaskinen
So far the command name has been figured out by looking one or two items back in the $words array, but I needed a way to figure out the command given an arbitrary number of parameters. I was implementing a command for removing devices from the device-manager database, and the command would take a l

[pulseaudio-discuss] [PATCH 1/2] shell-completion: zsh: Mark a variable as local

2014-10-18 Thread Tanu Kaskinen
Variables are global by default, and we certainly don't want _pactl_commands to be a global variable. --- shell-completion/zsh/_pulseaudio | 2 ++ 1 file changed, 2 insertions(+) diff --git a/shell-completion/zsh/_pulseaudio b/shell-completion/zsh/_pulseaudio index 1c786dc..5f66ed9 100644 --- a/s

[pulseaudio-discuss] systemd socket activation support

2014-10-18 Thread Colin Guthrie
Hi, So while at linux plumbers attending the systemd hackfest, I thought a good use of the hacking time I had available would be to allow PulseAudio to be activated via systemd's socket activation system. The changes needed are actually quite minimal, and by doing this we can disable quite a lot

[pulseaudio-discuss] [PATCH 2/8] build-sys: Clarify some systemd sub-component variable/define names.

2014-10-18 Thread Colin Guthrie
In newer versions of systemd some libraries were combined for the sake of general simplicity. This change checks against the newer name first and avoids separate pkgconfig checks if it's found. We probably want to keep support for the older library names for some time. systemd does allow for the s

[pulseaudio-discuss] [PATCH 7/8] launch: Disable autospawn by default when systemd daemon support is enabled.

2014-10-18 Thread Colin Guthrie
This method is prefered over pulseaudio's built in systems so we should try our best to ensure that it cannot be spawned outside of the mechanisms desired. We also disable the manual override of enabling the socket and force it to be enabled at install time. --- configure.ac

[pulseaudio-discuss] [PATCH 8/8] build-sys: Minor cosmetic tidyup of configure summary

2014-10-18 Thread Colin Guthrie
--- configure.ac | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index 46ad3d7..1a13f82 100644 --- a/configure.ac +++ b/configure.ac @@ -1563,9 +1563,10 @@ echo " headset backend: ${BLUETOOTH_HEADSET_BACKEND} Enable ude

[pulseaudio-discuss] [PATCH 5/8] launch: Avoid specifically starting PA and rely on autospawn/socket activation

2014-10-18 Thread Colin Guthrie
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

[pulseaudio-discuss] [PATCH 4/8] socket-server: Add support for systemd socket activation.

2014-10-18 Thread Colin Guthrie
This adds support to module-native-protocol-unix to take over already listening sockets passed in via socket activation (e.g. from systemd) Most of the code is isolated to socket-server but some cleanup code also had to be tweaked to ensure we do not overzealously close open fds. --- configure.ac

[pulseaudio-discuss] [PATCH 3/8] build-sys: Add support for newer systemd without compatibility libs

2014-10-18 Thread Colin Guthrie
When systemd is built without compatibility libs, we only need to do one pkgconfig check (libsystemd) rather than for libsystemd-login and libsystemd-journal separately. This change should allow building with both older and newer versions of systemd. --- configure.ac| 27 +

[pulseaudio-discuss] [PATCH 1/8] man: Fix XDG_RUNTIME_DIR variable reference.

2014-10-18 Thread Colin Guthrie
--- man/pulse-daemon.conf.5.xml.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/man/pulse-daemon.conf.5.xml.in b/man/pulse-daemon.conf.5.xml.in index 8bd076d..754312e 100644 --- a/man/pulse-daemon.conf.5.xml.in +++ b/man/pulse-daemon.conf.5.xml.in @@ -124,7 +124,7 @@ USA.

Re: [pulseaudio-discuss] [PATCH 2/8] build-sys: Clarify some systemd sub-component variable/define names.

2014-10-18 Thread Colin Guthrie
Colin Guthrie wrote on 18/10/14 20:43: > In newer versions of systemd some libraries were combined for the sake of > general simplicity. > > This change checks against the newer name first and avoids separate pkgconfig > checks if it's found. We probably want to keep support for the older library

Re: [pulseaudio-discuss] [PATCH 1/8] man: Fix XDG_RUNTIME_DIR variable reference.

2014-10-18 Thread Glenn Golden
Colin Guthrie [2014-10-18 20:43:24 +0200]: > diff --git a/man/pulse-daemon.conf.5.xml.in b/man/pulse-daemon.conf.5.xml.in > index 8bd076d..754312e 100644 > --- a/man/pulse-daemon.conf.5.xml.in > +++ b/man/pulse-daemon.conf.5.xml.in > @@ -124,7 +124,7 @@ USA. > > >use-pid-file= Crea