CoreMidi/CoreAudio and root user
CoreMidi/CoreAudio and root user
- Subject: CoreMidi/CoreAudio and root user
- From: Ethan Funk <email@hidden>
- Date: Mon, 27 Mar 2006 13:18:17 -0700
I am trying to run my audio daemon application as root at system
startup via launchd. It's not going well!
First, when I try to run the program as any user but root (using the
UserName plist property in launchd) I get the following error (fatal)
via the console:
Mar 26 07:57:53 Dusk /usr/local/arserver/arserver:
kCGErrorRangeCheck : Window Server communications from outside of
session allowed for root and console user only
Then I tried keeping the user as root and the problem goes away.
Next I changed the effective user within my code directly, and found
that the problem persisted until I made the effective user change
AFTER I set up all the core audio stuff. As a side note, if I run my
program from a terminal as root there is not problem. If I run it
from a terminal as root via a ssh session, the behavior is the same
as with launchd.
I am having a similar problem with CoreMidi, only this time, running
as root makes no difference at all. The only way to make it work is
to run from a terminal session directly, as root or any other user.
Here is the nonfatal error from the console:
Mar 26 12:04:38 Dusk /usr/local/arserver/arserver: CoreMIDI: unable
to connect to server init port\n
What is going on here?!?!
Thanks,
Ethan...
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden