Re: launch application de-elevated
Re: launch application de-elevated
- Subject: Re: launch application de-elevated
- From: danchik <email@hidden>
- Date: Thu, 16 Aug 2012 14:42:28 -0700
Hello, I have a postinstall script that starts a program to do some final
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 (email@hidden)
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:
This email sent to email@hidden