Menu

#89 connectAndCheck error message starting OSXvnc-server

closed
nobody
General (51)
5
2008-01-02
2007-12-04
Anonymous
No

Mac OS X 10.5.1 (Leopard)

If no user is logged into the console (windowserver isn't running), or a session is not already logged in, OSXvnc-server will fail to launch with the following error:

Dec 4 13:16:23 defiant OSXvnc-server[707]: 3891612: (connectAndCheck) Untrusted apps are not allowed to connect to or launch Window Server before login.

Apple's explanation/solution is the following:

Pre-Login Trust Issues
If, in Mac OS X 10.5 and later, you see a message like that shown below, you might mistakenly think that the solution is to get the system to 'trust' your application, perhaps via code signing.

Pre-Login Trust Message - Untrusted apps are not allowed to connect to or launch Window Server before login.

However, this isn't the case (r. 5544764). 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.

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'.

Discussion

  • Jonathan Gillaspie

    Logged In: YES
    user_id=631278
    Originator: NO

    Yes, we are working on the Leopard compatibility issues for Vine 3.0 -- a public beta is available here:
    http://www.redstonesoftware.com/phpBB2/viewtopic.php?p=3236#3236

     
  • Jonathan Gillaspie

    Logged In: YES
    user_id=631278
    Originator: NO

    This should all be fixed for 10.5 when using Vine Server 3.0

     
  • Jonathan Gillaspie

    • status: open --> closed
     

Log in to post a comment.