• 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
Re: CoreMidi/CoreAudio and root user
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CoreMidi/CoreAudio and root user


  • Subject: Re: CoreMidi/CoreAudio and root user
  • From: Shaun Wexler <email@hidden>
  • Date: Mon, 27 Mar 2006 14:39:11 -0800

On Mar 27, 2006, at 12:18 PM, Ethan Funk wrote:

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

Are you mistakenly linked to Cocoa or AppKit.framework? It's not supported by launchd daemons. You'll need to manage your own main thread loop yourself, or use CFRunLoop/NSRunLoop. NSApplication is part of AppKit, and connects to the window server for event and window management, etc.
--
Shaun Wexler
MacFOH
http://www.macfoh.com


"A person who never made a mistake never tried anything new." - Albert Einstein


_______________________________________________ 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
References: 
 >CoreMidi/CoreAudio and root user (From: Ethan Funk <email@hidden>)

  • Prev by Date: Re: Simple Mute controls
  • Next by Date: Another approach to root user?
  • Previous by thread: CoreMidi/CoreAudio and root user
  • Next by thread: CoreMidi/CoreAudio and root user
  • Index(es):
    • Date
    • Thread