Re: Login/Logout: Big LaunchServices issue.
Re: Login/Logout: Big LaunchServices issue.
- Subject: Re: Login/Logout: Big LaunchServices issue.
- From: Stéphane Sudre <email@hidden>
- Date: Wed, 17 Oct 2001 19:39:37 +0200
On mercredi, octobre 17, 2001, at 07:11 , Markus Hitter wrote:
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).
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?
Dunno.
What, if you stop the app before logging out?
I have an answer to that one. It's working. But I can't quit the
application after it has been launched (the way it's working) because I
would lose a lot of informations and anyway I would still be affected by
the logout problem.
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 ...
I will examine this path but it's not at all normal that we need to do
something like this.