Hello, I have a postinstall script that starts a program to do some finla configurations (the installer was elevated with password during the install), after all is done, the program starts the installed application via:

[[NSWorkspace sharedWorkspace] launchApplication:appPath]

which works, however, when the app is launched this way, there seems to be issues with configurations, for example, when trying to pull the list of available paper sizes for a default printer, I get an error (in 10.7 and 10.8) as a result instead of a list of paper sizes. If I relaunch the app as user (by clicking on it in Finder) everything works fine.

So there is something that isn't quiet right when the app is launched by the installer when it was elevated (even though it sais the process belongs to the same user as if I launched it by hand). Is there a better way to launch the app from withing the program that was started by the elevated installer?

Thank You

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to