Re: what does FAILED TO GET ASN FROM CORESERVICES mean?
Re: what does FAILED TO GET ASN FROM CORESERVICES mean?
- Subject: Re: what does FAILED TO GET ASN FROM CORESERVICES mean?
- From: Bill Janssen <email@hidden>
- Date: Tue, 25 Nov 2008 08:57:37 PST
- Comments: In-reply-to Sherm Pendley <email@hidden> message dated "Sun, 23 Nov 2008 03:08:29 -0800."
Sherm Pendley <email@hidden> wrote:
> So, you might want to re-think your doubts about the reliability of
> daemons and the window server. The fact that it sometimes works -
> presumably, when some is logged in to the desktop - can't be taken as
> evidence that they'll always do so.
Your point is well taken. But there's this write-up on the Apple site,
quite exhaustive, from last November, that seems to indicate my approach
should work. In particular, see
http://developer.apple.com/technotes/tn2005/tn2083.html, which includes
a section entitled "Process Manager and Launch Services", which says (in
part):
"...what happens when you use Launch Services to launch an application
from a daemon. Because the daemon is running in the global bootstrap
namespace, Launch Services can't use the bootstrap namespace to derive
the login session. Rather, Launch Services uses the EUID of the calling
process. The behavior is as follows:
* If the EUID of the calling process is zero, the application is
launched in the context of the currently active GUI login session. If
there is no currently active GUI login session (no one is logged in,
or a logged in user has fast user switched to the login window), the
behavior is unspecified (r. 5321293).
* If the EUID of the calling process is not zero and it matches that of
a user logged in via the GUI, the application is launched in the
context of that user's GUI login session.
* If the EUID of the calling process is not zero but it does not match
that of a user logged in via the GUI, the behavior is unspecified
(r. 5321281)."
Now, my EUID is the same as that of the "user logged in via the GUI", so
the application (OpenOffice) should be launched in the context of that
user's GUI login process.
Bill
Sherm Pendley <email@hidden> wrote:
> On Nov 22, 2008, at 4:20 PM, Bill Janssen wrote:
> >
> > What's an "ASN"? How does a system daemon ever get one?
> >
> > I'm running a daemon, started by SystemStarter at boot time, and
> > running
> > as me (an admin account), which periodically invokes OpenOffice's
> > "soffice" binary to convert MS Office docs to PDF. Works most of the
> > time, even though daemons supposedly don't have access to the window
> > server, but sometimes OpenOffice crashes with this error message:
> >
> > FAILED TO GET ASN FROM CORESERVICES so aborting.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden