summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2006-07-17 15:38:20 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2006-07-17 15:38:20 +0000
commit2cf2758e3d6b93ae7f10b96680dadf5b7206eb9c (patch)
treef32002c741ed01a86fb7e3fe83ac07d951a1b381 /media-sound/pulseaudio/files
parentRevision bump to support new Java system. (diff)
downloadgentoo-2-2cf2758e3d6b93ae7f10b96680dadf5b7206eb9c.tar.gz
gentoo-2-2cf2758e3d6b93ae7f10b96680dadf5b7206eb9c.tar.bz2
gentoo-2-2cf2758e3d6b93ae7f10b96680dadf5b7206eb9c.zip
Improve support for system-wide pulseaudio daemon, let it work with users in audio group.
(Portage version: 2.1.1_pre3)
Diffstat (limited to 'media-sound/pulseaudio/files')
-rw-r--r--media-sound/pulseaudio/files/pulseaudio.conf.d1
-rw-r--r--media-sound/pulseaudio/files/pulseaudio.init.d8
2 files changed, 7 insertions, 2 deletions
diff --git a/media-sound/pulseaudio/files/pulseaudio.conf.d b/media-sound/pulseaudio/files/pulseaudio.conf.d
index 620443bfedf3..01521ede4aee 100644
--- a/media-sound/pulseaudio/files/pulseaudio.conf.d
+++ b/media-sound/pulseaudio/files/pulseaudio.conf.d
@@ -4,4 +4,3 @@
# Startup options
PA_OPTS="--log-target=syslog"
-
diff --git a/media-sound/pulseaudio/files/pulseaudio.init.d b/media-sound/pulseaudio/files/pulseaudio.init.d
index 66165fa2f556..08dbadfe2f57 100644
--- a/media-sound/pulseaudio/files/pulseaudio.init.d
+++ b/media-sound/pulseaudio/files/pulseaudio.init.d
@@ -9,8 +9,14 @@ depend() {
start() {
ebegin "Starting pulseaudio"
- start-stop-daemon --start --quiet --background --exec /usr/bin/pulseaudio -- ${PA_OPTS} --fail=true
+ HOME=/var/run/pulse
+ start-stop-daemon --start --chuid pulse:pulse \
+ --exec /usr/bin/pulseaudio -- ${PA_OPTS} --fail=true -D
eend $?
+
+ chgrp -R audio /var/run/pulse
+ chmod 0750 /var/run/pulse
+ chmod 0660 /var/run/pulse/native
}
stop() {