On Wed, 2007-02-28 at 19:41 +0100, Alexander Boström wrote: > tis 2007-02-27 klockan 13:49 -0500 skrev David Zeuthen: > > > That's only because PA decides to open the device directly and haven't > > been taught to give it up on session inactivity. That's not hard to > > change and it's the right thing to do *anyway* since we probably want a > > default policy where audio is muted from inactive sessions just like > > video is muted. > > Ok, so what are the problems with a really naive solution like this: > > When a session is swapped out from a console, some system daemon revokes > the ACL:s HAL can do this (it's a one-line change) and probably will depending on a few things. To do this, HAL listens to ConsoleKit on the system message bus. > and signals the user PulseAudio daemon to give up the device. > If it doesn't comply, more force will probably have to be used. > (Timeouts in user interfaces suck though.) If PA is running in the session, it could listen to ConsoleKit on the system message bus. That's actually what I proposed. David -- Fedora-desktop-list mailing list Fedora-desktop-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/fedora-desktop-list