• 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
Re: launching app post-install in leopard
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: launching app post-install in leopard


  • Subject: Re: launching app post-install in leopard
  • From: email@hidden
  • Date: Fri, 21 Dec 2007 16:34:42 -0500

Replying to myself...

My problem apparently has nothing to do with the Quarantine attribute either.

The application I am trying to launch from my installer is a PPC app, built in CodeWarrior. It crashes in Mac OS X 10.5, on an Intel Mac. It looks like the crash might be in Rosetta. The interesting thing about this is that the 2nd and later times that you run the app (or run the installer again) everything is fine!

By the way, the installer is running as root, and the app is also owned by root.

Any ideas?

Thanks in advance,

      - Rick

On 12/21/2007 12:15 PM, email@hidden wrote:
I am trying to test this. I downloaded a copy of my installer from the internet, and ran it on a Leopard machine. The app I launched from the installer crashed. But the 2nd time I run the installer (or just run the app from the hard drive), the app launches and runs fine. Is that the expected behavior?

I then tried downloading the installer again, and the app again launches fine.

Does this sound like the "quarantined app" issue?

What do I need to change to force the system to view this as a new app, so that I can test the effect of adding "xattr -d com.apple.quarantine myApp.app" to my scripts?

Thanks in advance!

        - Rick

On 11/28/2007 9:11 AM, Martin Bestmann wrote:

On 27.11.2007, at 13:16, Adam Fisk wrote:

Someone mentioned the issue with not being able to call "open
myApp.app" in a postflight script because Leopard notices it's
downloaded from the Internet.  I'm seeing the same thing with
launchctl.

Anyone know a way to launch your program after the install on Leopard?

Thanks very much.

The problem is that Apple attaches to those files coming from the internet an extended attribute. Run this from terminal to see it


xattr -l myApp.app

Once attribute is removed with

xattr -d com.apple.quarantine myApp.app

You can launch it without user interaction.

Hope this helps,

Martin

PS.: Apple heavily uses now extended attributes for various things in Leopard.

_______________________________________________ Do not post admin requests to the list. They will be ignored. Installer-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Re: launching app post-install in leopard (From: email@hidden)

  • Prev by Date: Re: launching app post-install in leopard
  • Next by Date: Re: launching app post-install in leopard
  • Previous by thread: Re: launching app post-install in leopard
  • Next by thread: Re: launching app post-install in leopard
  • Index(es):
    • Date
    • Thread