| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
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.
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.
--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
| References: | |
| >Process ID of Xserver (From: robert delius royar <email@hidden>) | |
| >Re: Process ID of Xserver (From: Kevin Geiss <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
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.