Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Untrusted apps are not allowed to connect to or launch Window Server before login.




You already got some replies. But I don't really understand the above. Do you mean that your script fails on Mac OS X server while it works when run on Mac OS X client under exactly the same circumstances?
Could you elaborate?

I think that the more likely situation is that on the 'client machine he is trying things out when he is logged in (thus there is a Window server available). If you look at the last bit of the error he is getting you will see this line:


AppKit.NSBorderlessWindowMask, 2, 0) objc.error: NSInternalInconsistencyException - Error (1002) creating CGSWindow

Yes, this sounds obvious, but how can I get around this?


So one of the calls he is making (probably indirectly) on AppKit needs to create a Window (possibly off-screen) to do some compositing work, and is failing when it realizes that it can't create windows.
I think it is the following call from the python script:
win = AppKit.NSWindow.alloc()
win.initWithContentRect_styleMask_backing_defer_ (rect, AppKit.NSBorderlessWindowMask, 2, 0)


If you are interested in the whole script making images from websites, you can get it from:
http://www.paulhammond.org/2005/08/webkit2png/webkit2png-0.4.txt


Perhaps you can make it work on a MacOSX Server.

Thank you for further help.
Hannes


_______________________________________________ Do not post admin requests to the list. They will be ignored. Macos-x-server mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/macos-x-server/email@hidden

This email sent to email@hidden
References: 
 >Untrusted apps are not allowed to connect to or launch Window Server before login. (From: Hannes Bohring <email@hidden>)
 >Re: Untrusted apps are not allowed to connect to or launch Window Server before login. (From: Axel Luttgens <email@hidden>)
 >Re: Untrusted apps are not allowed to connect to or launch Window Server before login. (From: Karl Kuehn <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.