On Mon, Jan 16, 2012 at 11:35 PM, Rakesh Singhal
<
email@hidden> wrote:
> I think this is happening due to launching of GUI (MyApp.app) from daemon.
> Got following error:
> com.apple.launchd System: This API can only be used by a process running
> within an Aqua session.
> open spawn_via_launchd() failed, errno=5 label=.....
> path=/Applications/MyApp.app/Contents/MacOS/MyApp flags=0
>
> How can I resolve it?
>
> Thanks & Regards,
> rksinghal
>
>
>
>
> Subject: Installer failing in 10.7
>>
>> To:
email@hidden
>> Message-ID:
>>
>> <
email@hidden>
>> Content-Type: text/plain; charset="iso-8859-1"
>>
>>
>> Hi all,
>>
>> I have an installer which installs an app and a daemon. In postinstall
>> script, it runs command "open /Applications/MyApp.app" and it works. If
>> this app is already installed and I install new version, it upgrades
>> smoothly. The daemon is keep polling on server for updated version. If it
>> finds then it downloads the dmg file, mount it and spawns a new process to
>> run the installer. It works properly with 10.5 and 10.6 but gives error on
>> 10.7. The error is "./postinstall: LSOpenURLsWithRole() failed with error
>> -10810 for the file /Applications/MyApp.app". In preupgrade script, I kill
>> both process and remove plist for daemon.
>>
>> Is this issue due to sandbox or something else? Please let me know if you
>> know how to resolve it.
>>
>> Thanks in advance.
>>
>> Regards,
>>
>
>