- Bug #497214 Do not start pulseaudio daemon if PULSE_SERVER directs pulse

elsewhere.
This commit is contained in:
Warren Togami 2009-04-22 20:54:34 +00:00
parent f28834ad08
commit 5490aeb8aa
2 changed files with 20 additions and 1 deletions

View File

@ -0,0 +1,13 @@
diff -urN pulseaudio-0.9.15.orig/src/daemon/start-pulseaudio-x11.in pulseaudio-0.9.15/src/daemon/start-pulseaudio-x11.in
--- pulseaudio-0.9.15.orig/src/daemon/start-pulseaudio-x11.in 2009-02-19 21:26:55.000000000 -0500
+++ pulseaudio-0.9.15/src/daemon/start-pulseaudio-x11.in 2009-04-22 16:48:37.574738056 -0400
@@ -19,6 +19,9 @@
set -e
+# Exit without running pulseaudio daemon if this is a remote desktop session
+[ -n "$PULSE_SERVER" ] && exit 0
+
@PA_BINARY@ --start "$@"
if [ x"$DISPLAY" != x ] ; then

View File

@ -3,10 +3,11 @@
Name: pulseaudio
Summary: Improved Linux sound server
Version: 0.9.15
Release: 10%{?dist}
Release: 11%{?dist}
License: GPLv2+
Group: System Environment/Daemons
Source0: http://0pointer.de/lennart/projects/pulseaudio/pulseaudio-%{version}.tar.gz
Patch0: pulseaudio-0.9.15-no-daemon-if-remote-desktop.patch
URL: http://pulseaudio.org
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: m4
@ -187,6 +188,7 @@ This package contains command line utilities for the PulseAudio sound server.
%prep
%setup -q -T -b0
%patch0 -p1
%build
CFLAGS="-ggdb" %configure --disable-static --disable-rpath --with-system-user=pulse --with-system-group=pulse --with-realtime-group=pulse-rt --with-access-group=pulse-access
@ -407,6 +409,10 @@ groupadd -r pulse-access &>/dev/null || :
%{_mandir}/man1/pax11publish.1.gz
%changelog
* Wed Apr 22 2009 Warren Togami <wtogami@redhat.com> 0.9.15-11
- Bug #497214
Do not start pulseaudio daemon if PULSE_SERVER directs pulse elsewhere.
* Mon Apr 13 2009 Lennart Poettering <lpoetter@redhat.com> 0.9.15-10
- Final 0.9.15 release