Bug#147532: Patch for making esd work with multiple parallel users

2005-08-19 Thread Matt Zimmerman
On Fri, Aug 19, 2005 at 08:55:29AM +0200, Martin Pitt wrote: > - Ryan said it may break commercial apps. I'm really not too worried >about that. First, if an app uses the socket directly instead of >using libesd, it is broken by design. Second, most commercial apps >I know use OSS and

Bug#147532: Patch for making esd work with multiple parallel users

2005-08-19 Thread Martin Pitt
Hi Matt! Matt Zimmerman [2005-08-18 15:32 -0700]: > On Thu, Aug 18, 2005 at 03:13:41PM -0700, Ryan Murray wrote: > > On Thu, Aug 18, 2005 at 11:23:19PM +0200, Martin Pitt wrote: > > > I patched esound to work with several parallel instances, so that > > > several logged in users can get sound: > >

Bug#147532: Patch for making esd work with multiple parallel users

2005-08-19 Thread Martin Pitt
Hi Matt! Matt Zimmerman [2005-08-18 16:02 -0700]: > > With your solution, if the first user leaves anything playing sound (game, > > music player, etc) running, additional users won't be able to get any sound. > > That isn't true with dmix. It is, unfortunately: $ sudo -u joe aplay /usr/share/s

Bug#147532: Patch for making esd work with multiple parallel users

2005-08-19 Thread Martin Pitt
Hi Ryan, hi Matt! I read your discussion. I thought quite a while about possible options, so here are my thoughts: (1) Start a global system esd. - esound was designed as a per-user process, not system-wide. Every user can and should be able to use her own default device, which is not pos

Bug#147532: Patch for making esd work with multiple parallel users

2005-08-18 Thread Ryan Murray
On Thu, Aug 18, 2005 at 04:59:21PM -0700, Matt Zimmerman wrote: > > The supplied patch has a comment about how -as is used by default so that > > other users can actually use the device. If it's not true with dmix, then > > why the change? > > Because dmix doesn't work for everyone yet. I think

Bug#147532: Patch for making esd work with multiple parallel users

2005-08-18 Thread Matt Zimmerman
On Thu, Aug 18, 2005 at 04:29:23PM -0700, Ryan Murray wrote: > On Thu, Aug 18, 2005 at 04:02:37PM -0700, Matt Zimmerman wrote: > > > Yes, as I said: > > > > > > > > What might be better for the default Debian permissions setup is to > > > > > make the socket for public use by anyone in the audio g

Bug#147532: Patch for making esd work with multiple parallel users

2005-08-18 Thread Ryan Murray
On Thu, Aug 18, 2005 at 04:02:37PM -0700, Matt Zimmerman wrote: > > Yes, as I said: > > > > > > What might be better for the default Debian permissions setup is to > > > > make the socket for public use by anyone in the audio group. > > I don't think that addresses all of the issues. If the firs

Bug#147532: Patch for making esd work with multiple parallel users

2005-08-18 Thread Matt Zimmerman
On Thu, Aug 18, 2005 at 03:55:27PM -0700, Ryan Murray wrote: > On Thu, Aug 18, 2005 at 03:32:34PM -0700, Matt Zimmerman wrote: > > With modern GNOME, it's quite convenient to have multiple users logged in at > > the console and switch between them, as in Windows XP, and that is the > > scenario tha

Bug#147532: Patch for making esd work with multiple parallel users

2005-08-18 Thread Ryan Murray
On Thu, Aug 18, 2005 at 03:32:34PM -0700, Matt Zimmerman wrote: > With modern GNOME, it's quite convenient to have multiple users logged in at > the console and switch between them, as in Windows XP, and that is the > scenario that we would like to provide for. > > Do you know of a better way to m

Bug#147532: Patch for making esd work with multiple parallel users

2005-08-18 Thread Matt Zimmerman
On Thu, Aug 18, 2005 at 03:13:41PM -0700, Ryan Murray wrote: > On Thu, Aug 18, 2005 at 11:23:19PM +0200, Martin Pitt wrote: > > I patched esound to work with several parallel instances, so that > > several logged in users can get sound: > > This breaks third party commercial applications. I have

Bug#147532: Patch for making esd work with multiple parallel users

2005-08-18 Thread Ryan Murray
On Thu, Aug 18, 2005 at 11:23:19PM +0200, Martin Pitt wrote: > I patched esound to work with several parallel instances, so that > several logged in users can get sound: This breaks third party commercial applications. I have no intention of doing this. The socket name really can't be changed.

Bug#147532: Patch for making esd work with multiple parallel users

2005-08-18 Thread Martin Pitt
Hi! I patched esound to work with several parallel instances, so that several logged in users can get sound: esound (0.2.36-1ubuntu4) breezy; urgency=low . * Make esd work for several users in parallel (Ubuntu #3671, Debian #147532): - util.c, esd_get_socket_dirname(): Append the u