MacOS – New programs must be launched twice in 10.7.3

applicationsdockfilesystemmacos

I noticed recently that new programs (newly installed or downloaded) are not opening on first try on my MacBook Pro, or on my wife's MacBook. Both are running 10.7.3.

On first launch, new programs take a very long time to start. When they do show up in the Dock, they either bounce for a long, long time and then immediately exit, or finally stop bouncing and show up as if closed (I still have the little highlight turned on so I can see what is open or closed). When clicked, the icon disappears from the Dock. When I re-launch the app, it opens instantly with no issues – it is just the initial launch that seems screwy.

Have not been able to figure out what is happening with this, as my searches elsewhere haven't turned anything up. Any ideas? Related to some kind of sandboxing? It's not a huge issue but it is kind of annoying.

Best Answer

This may be another case of Lion being a quiter. And utilizing OS X Lion's Auto Termination and additionally OS X Lions Sudden Termination feature.

Lion will quit your running applications behind your back if it decides it needs the resources, and if you don’t appear to be using them. The heuristic for determining whether an application is “in use” is very conservative: it must not be the active application, it must have no visible, non-minimized windows — and, of course, it must explicitly support Automatic Termination.

A program that is "taking to long to start" seems like a perfect candidate for the OS to kill.

Also it makes perfect sense for when you come back the second time and they start up, since Lion would have saved state on the program.