LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (http://www.linuxquestions.org/questions/debian-26/)
-   -   How to find the process associated with a top-level X window (http://www.linuxquestions.org/questions/debian-26/how-to-find-the-process-associated-with-a-top-level-x-window-907125/)

bgoodr 10-08-2011 12:20 PM

How to find the process associated with a top-level X window
 
Is there an existing program, available as a supported Debian package, and that works from within the GNOME desktop, that can show the specific UNIX process that created a specific X window? It's user interface should work in the same manner as the xwininfo program, by allowing the user to select the specific window in question with the mouse button.

For comparison, on Microsoft Windows, there is a downloadable, free, utility called Process Explorer that allows you to find the process associated with the window. The user clicks on the "Find Window" icon, then drags the mouse pointer over the window of interest, clicks on the left mouse button, and then the specific process is highlighted in the Process Explorer's main window.

I need to identify the process id at minimum. But, if there exists a tool that provides a GUI front-end that could show additional information akin to Process Explorer, that would be icing on the cake.

Thanks,
bg

porphyry5 10-08-2011 01:04 PM

Quote:

Originally Posted by bgoodr (Post 4493234)
I need to identify the process id at minimum. But, if there exists a tool that provides a GUI front-end that could show additional information akin to Process Explorer, that would be icing on the cake.

Thanks,
bg

wininfo functions much like xwininfo, except you hover the mouse instead of clicking it. It is a gui app whose "Window Manager Hints" tab provides the name of the window and the PID. Don't know if there is a Debian package for it.

bgoodr 10-08-2011 01:24 PM

Quote:

Originally Posted by porphyry5 (Post 4493253)
wininfo functions much like xwininfo, except you hover the mouse instead of clicking it. It is a gui app whose "Window Manager Hints" tab provides the name of the window and the PID. Don't know if there is a Debian package for it.


Thanks! There is a Debian package for it called exactly that: wininfo. I've downloaded and installed it. The pid shows up dynamically versus having to explicitly click on specific windows, which is ok by me.

bg


All times are GMT -5. The time now is 08:10 AM.