Re: first time launch message
Re: first time launch message
- Subject: Re: first time launch message
- From: Jens Alfke <email@hidden>
- Date: Tue, 16 Mar 2010 08:37:08 -0700
On Mar 16, 2010, at 6:16 AM, Rick C. wrote:
> normally after downloading an app via safari upon first launch it will give the message to the effect of "this is the first launch of something downloaded from the internet do you really want to open etc." i think you know what i'm referring to. my question is a project i'm working on seems to give this message on the second launch instead of the first after being downloaded. does anyone know what specifically causes this message and is there something within the app that triggers it that maybe i need to correct? thank you,
This happens before any of the app code runs (since it’s warning the user about untrusted code.) Downloaded executable files have a special filesystem metadata attribute applied to them by the browser, and LaunchServices sees this attribute and pops up the warning before launching the app. If you OK the warning the attribute is removed.
I have no idea why this would be happening to you on the second launch. Does your app spawn subprocesses? I.e. some ported apps do weird stuff like making the main executable be a shell that just immediately launches another executable. I don’t know if this could confuse LaunchServices, but it’s a possibility.
You could troubleshoot this by waiting till the alert comes up, then using Activity Monitor to see if any of your code has been launched, and if so, sampling that process to see where it’s blocked.
—Jens_______________________________________________
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