• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
launch application de-elevated
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

launch application de-elevated


  • Subject: launch application de-elevated
  • From: danchik <email@hidden>
  • Date: Thu, 16 Aug 2012 14:31:39 -0700

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 (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

  • Prev by Date: Re: 64-Bit Transition GuideS
  • Next by Date: Re: launch application de-elevated
  • Previous by thread: Re: App memory
  • Next by thread: Re: launch application de-elevated
  • Index(es):
    • Date
    • Thread