Re: Login/Logout: Big LaunchServices issue.
Re: Login/Logout: Big LaunchServices issue.
- Subject: Re: Login/Logout: Big LaunchServices issue.
- From: Markus Hitter <email@hidden>
- Date: Wed, 17 Oct 2001 19:11:03 +0200
Am Mittwoch, 17. Oktober 2001 um 17:02 schrieb Stiphane Sudre:
[...]
Now if the user logout and then login again, the Cocoa
background Application can't be launched again by the boot
process. Yet it can be launched by another way, double clicking
on it for instance.
To launch the Cocoa Application, I'm using the LaunchServices
API and the second time (when it's no more working):
LSOpenFromURLSpec returns with an error: 268435459 (which is
not documented anywhere).
Stiphane,
could it be that there is some entry is left in any of these
databases where the system tries to keep track about what's
going on?
What, if you stop the app before logging out?
From what I've understood, when the user logout, the Window
server kills the Cocoa Application since it has some connection
with the Window Server.
IIRC, an App gets first a signal 1 (HUP: Hang up), then a signal
9 (the uncatchable one). The solution could be to exit the app
cleanly after the signal 1 is sent. Would require a signal
handler ...
Just a few thoughts,
Markus
- - - - - - - - - - - - - - - - - - -
Dipl. Ing. Markus Hitter
http://www.jump-ing.de/