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.




OK,
I did find my project which runs as tool from command line and uses Appkit methods. The trick is that you need to call [NSApplication sharedApplication] in your main method.


int main (int argc, const char * argv[]) {
    NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];

   [NSApplication sharedApplication];


// your code here

   [pool release];
    return 0;
}


HTH Robert

Hello Robert,

thank you for your reply. I have looked into the python script and found something like this:
app = AppKit.NSApplication.sharedApplication()


I think this is doing the same as your code and the problem is that the user under whom the
script runs isn't logged in the window server? How can it be done that the script runs in the window
server context?


Perhaps you can have a look at the webkit2png script here:
http://www.paulhammond.org/2005/08/webkit2png/webkit2png-0.4.txt

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: Robert Cerny <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.