Re: Is this program open?
Re: Is this program open?
- Subject: Re: Is this program open?
- From: "Finlay Dobbie" <email@hidden>
- Date: Thu, 13 Apr 2006 19:02:16 +0100
On 13/04/06, John Stiles <email@hidden> wrote:
> I experimented with -launchedApplications in the past, but it had a
> lot of limitations—it only displayed apps that are end-user visible.
> Things like faceless apps and command line tools weren't included.
launchedApplications is just a wrapper atop Process Manager, I think.
> What does Activity Monitor use? It can even see other users' apps.
> That would be ideal for me.
At a guess, sysctl(3) and Mach calls -- much like ps(1). It doesn't
determine process' paths, I don't think -- I'm not even sure there's a
way of doing that reliably. You can get the vnode using sysctl, but I
don't think there's a reliable, supported way of going back from a
vnode to a path (not even necessarily a 1-to-1 mapping).
-- Finlay
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden