On Wed, 6 Jun 2007, Brian J. Murrell wrote: > On Wed, 2007-06-06 at 17:40 +0300, Sergei Steshenko wrote: >> >> Well, it to assume there is only one process which uses .asoundrc you >> can generated it dynamically, calling the generator from >> .cshrc, .bashrc, .whatever_your_login_shell_is; the generator script >> will generate contents depending on host name/type. > > Won't work. .asoundrc is read by applications when they run, not just > login time. So if I am logged into two machines at the same time how > does each machine read it's own version of the file? The answer is they > won't. It's a race. Both machines will read the file as generated by > the machine I last logged into. So have .asoundrc as a link to say /etc/asoundrc, a common machine resource. ln -sf /etc/asoundrc .asoundrc will read a different version of asoundrc depending on the machine. Of course this implies that you want a common asoundrc, which might be bad on 10000 user system but is probbly pretty good on a single user system. > > The real answer here is that this should be a per-machine resource, not > a per-user (only) resource. > > b. > > -- William G. Unruh | Canadian Institute for| Tel: +1(604)822-3273 Physics&Astronomy | Advanced Research | Fax: +1(604)822-5324 UBC, Vancouver,BC | Program in Cosmology | unruh@xxxxxxxxxxxxxx Canada V6T 1Z1 | and Gravity | www.theory.physics.ubc.ca/ ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Alsa-user mailing list Alsa-user@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/alsa-user