Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Process ID of Xserver



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)
Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/x11-users/email@hidden

This email sent to email@hidden
References: 
 >Process ID of Xserver (From: robert delius royar <email@hidden>)
 >Re: Process ID of Xserver (From: Kevin Geiss <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.