Re: Process ID of Xserver
Re: Process ID of Xserver
- Subject: Re: Process ID of Xserver
- From: "Torrey T. Lyons" <email@hidden>
- Date: Fri, 1 Oct 2004 11:31:45 -0700
At 9:58 AM -0700 10/1/04, Kevin Geiss wrote:
well, 'ps auxwwj' will list all processes along with their parent
pids. the X server should be called 'X11', with the full path:
/Applications/Utilities/X11.app/Contents/MacOS/X11
oddly enough, on my system there were two of them, one was the
parent of the other.
I think this qualifies as an unreliable way. What if someone is using
XDarwin? What if they have more than one instance of X11 running on
separate screens? ...
On Oct 1, 2004, at 8:17 AM, robert delius royar wrote:
Is there a reliable way to get the PID of the Xserver which owns
the root window? Either a shell method or one which runs within a
child process would be OK. I know I can get the parent's PID in a
program, but I don't think I can be sure that that will always be
the server. For example the parent might be an XTerm.
With the PID, I can get the server app's serial number which I can
then use to talk to some of the event manager routines.
The AppleWM extension sets some properties on the root window, but
this is not one of them. What are you planning to do with the Event
Manager routines? This is perhaps an area where a new feature would
be useful.
--Torrey
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden