Skip to content

Instantly share code, notes, and snippets.

/* NOTE: The recommended location for flat-file helper binaries is in .../Contents/MacOS. We cannot put the helper there because there is a bug in LaunchServices which can result in the wrong main executable being recorded in the LS database. Subsequent attempts to open the bundled application with LS result in the wrong binary being executed. This happens when
- the helper is in .../Contents/MacOS/
- the helper is executed before the application bundle has been registered with LS
- the helper opens the main application bundle using LS
rdar://problem/5562575
*/