[pulseaudio-discuss] How can other users play sound on Mandriva Cooker?

Shlomi Fish shlomif at gmail.com
Mon Mar 24 14:06:41 PDT 2008


Hi all!

I'm using Mandriva Cooker (the bleeding edge of Mandriva Linux) with
Pulseaudio. However, other users I su - to cannot play sound despite
the fact that they belong to the "audio" group. Pulseaudio is started
like this:

<<<<<<<<<<<<<
shlomi:~$ cat /etc/X11/xinit.d/50pulseaudio
#!/bin/sh
# to be sourced

if [ -r ~/.pulserc ]; then
  CONFIG=~/.pulserc
else
  CONFIG=/etc/sysconfig/pulseaudio
fi

PULSE_ARGS=" --log-target=syslog"
[ -r "$CONFIG" ] && . $CONFIG


#[ "$SESSION" = "failsafe" ] && PULSE_SERVER_TYPE=none

if [ "$PULSE_SERVER_TYPE" = "personal" ]; then
  # Do some pid file tidy up
  PIDFILE=/tmp/pulse-$USER/pid
  if [ -f $PIDFILE ]; then
    PID=$(cat $PIDFILE)
    if [ -f /proc/$PID/status ]; then
      PNAME=$(cat /proc/$PID/status | grep ^Name | awk '{ print $2 }')
      if [ "pulseaudio" != "$PNAME" ]; then
        # This is a bogus pid file and pulse will fail to start.
        rm -f $PIDFILE
      fi
    fi
  fi

  /usr/bin/pulseaudio --daemonize $PULSE_ARGS
fi
>>>>>>>>>>>>>>>>>>

And:

<<<<<<<<<<
shlomi:~$ ls -l /tmp/pulse-shlomi/
total 4
srwxrwxrwx 1 shlomi shlomi 0 2008-03-22 19:40 native
-rw------- 1 shlomi shlomi 5 2008-03-22 19:40 pid
>>>>>>>>>>

Any suggestions and best-practices will be welcome.

Regards,

          Shlomi Fish

------------------------------------------
Shlomi Fish http://www.shlomifish.org/

Electrical Engineering studies. In the Technion. Been there. Done
that. Forgot a lot. Remember too much.



More information about the pulseaudio-discuss mailing list