• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
CoreMidi/CoreAudio and root user
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CoreMidi/CoreAudio and root user


  • Subject: CoreMidi/CoreAudio and root user
  • From: Ethan Funk <email@hidden>
  • Date: Sun, 26 Mar 2006 15:14:31 -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


  • Follow-Ups:
    • Re: CoreMidi/CoreAudio and root user
      • From: Doug Wyatt <email@hidden>
  • Prev by Date: Re: Another approach to root user?
  • Next by Date: Re: AU Views, 'thng' versus ComponentEntryPoint::Register
  • Previous by thread: Re: CoreMidi/CoreAudio and root user
  • Next by thread: Re: CoreMidi/CoreAudio and root user
  • Index(es):
    • Date
    • Thread