hi!

On Tue, Dec 11, 2001 at 10:26:51PM -0600, Peter Clark wrote:
>       I asked this question on the KDE-multimedia list, but received no answer, so 
> I thought I would try this list. My home computer runs two X virtual 
> terminals, vt7 (my desktop) and vt8 (my wife's). We both run KDE. The problem 
> is that while one is logged in, the other cannot use arts. Say I log in 
> first, and a little while later I leave and my wife sits down. She logs into 
> her account, and up pops an error message to the effect that /dev/dsp is 
> being used, so all sound will be piped to the null device. How can I set up 
> arts so that one instance of arts can be used by the both of us without 
> requiring either of us to log out so the other one can have sound?

Well, usually aRts requires you to use the same X display for all users that
use the same sound server, to perform authentication over it. As this might
not be what you like in your case, the only thing you can do is to use TCP
and no authentication, using

export ARTS_SERVER=localhost:9877

for both of you, and start a common

artsd -u -p 9877  # and maybe some other options like -F10 -S4096

for your computer. This has *nasty* security implications, though, which is
why it is not really encouraged or supported, which are:

1. no authentication is performed (-u) which means that everybody who can
   remotely access your computer can use the artsd
2. the priviliges artsd has can be used by every user (which means if you are
   running it as root (bad idea!), everybody is effective root)

Maybe you can write some lines of code which at least can fix (1). On the other
hand, maybe what you really might want to run two artsd's instead, and use a
short autosuspend timeout.

   Cu... Stefan
-- 
  -* Stefan Westerfeld, [EMAIL PROTECTED] (PGP!), Hamburg/Germany
     KDE Developer, project infos at http://space.twc.de/~stefan/kde *-         

Reply via email to