Login/Logout: Big LaunchServices issue.
Login/Logout: Big LaunchServices issue.
- Subject: Login/Logout: Big LaunchServices issue.
- From: Stéphane Sudre <email@hidden>
- Date: Wed, 17 Oct 2001 17:02:09 +0200
Let's explain the issue.
I have a CoreFoundation boot process and a Cocoa Background Application
When an user is login, the boot process can launch the Cocoa Background
Application to display a dialog or alert.
This is working well and not.
The first time the boot process launches the Cocoa Background
Application it's working. Perfect.
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).
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. That's fine with me since I maintain the application status in
the boot process.
But it seems something bad is happening in the same time and I don't
have the slightest idea of what it can be (and worse I haven't found any
workaround after a lot of crazy experiments).