Re: first time launch message
Re: first time launch message
- Subject: Re: first time launch message
- From: "Rick C." <email@hidden>
- Date: Wed, 17 Mar 2010 04:28:29 -0700 (PDT)
thank you for the replies. no sub-processes but i can use the info you have provided to do some troubleshooting. thank you very much and i'll let you know,
rick
________________________________
From: Jens Alfke <email@hidden>
To: Rick C. <email@hidden>
Cc: cocoa dev <email@hidden>
Sent: Tue, March 16, 2010 11:37:08 PM
Subject: Re: first time launch message
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