[launchd-dev] StartupItems
Quinn
eskimo1 at apple.com
Wed Apr 2 03:37:23 PDT 2008
At 15:40 +0530 2/4/08, Pradip Patel wrote:
>do I have to sign the code ?
No. To quote from the technote:
If, in Mac OS X 10.5 and later, you see a message like
that shown in Listing 9 you might mistakenly think that
the solution is to get the system to 'trust' your
application, perhaps via code signing.
However, this isn't the case. This message is really
telling you is that you're trying to connect to the
window server from the wrong context. You see this
message if you try to connect to the global window
server service from outside of the pre-login context
before the user has logged in; typically this means that
you're trying to use the window server from a daemon.
>or change the code ?
Yes. Again, to quote from the technote:
You should not attempt to fix this by convincing the
window server to trust your program; doing so will just
cause other problems further down the road. For example,
if you do successfully connect to the window server from
your daemon, you still have to deal with window server
lifecycle issues described previously.
Instead, you should fix this problem by changing your
code to run in the correct context. If you need to
connect to the window server in a pre-login context,
create a pre-login launchd agent. For an example of
this, see Sample Code Project 'PreLoginAgents'.
S+E
--
Quinn "The Eskimo!" <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
More information about the launchd-dev
mailing list