LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 10-08-2011, 12:20 PM   #1
bgoodr
Member
 
Registered: Dec 2006
Location: Oregon
Distribution: RHEL[45] {x86,x86_64}, Debian "testing" {x86,x86_64}
Posts: 219

Rep: Reputation: 36
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
 
Old 10-08-2011, 01:04 PM   #2
porphyry5
Member
 
Registered: Jul 2010
Location: oregon usa
Distribution: Slackware 14.1, Arch
Posts: 419

Rep: Reputation: 18
Quote:
Originally Posted by bgoodr View Post
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.
 
Old 10-08-2011, 01:24 PM   #3
bgoodr
Member
 
Registered: Dec 2006
Location: Oregon
Distribution: RHEL[45] {x86,x86_64}, Debian "testing" {x86,x86_64}
Posts: 219

Original Poster
Rep: Reputation: 36
Quote:
Originally Posted by porphyry5 View Post
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
 
  


Reply

Tags
gnome, process, processexplorer, xwininfo


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating a *top* level window, GTK/GDK/OpenGL... andrei_b Programming 4 09-03-2010 01:40 AM
Need to write a code in C to find the top 10 process which are utilizing most of the kamaalhassan Linux - Newbie 4 12-19-2008 12:37 AM
Getting the name of the top-level or focused window in KDE narc Linux - Desktop 6 08-30-2008 09:17 AM
To find the process that uses the most memory using top nano2 Linux - Server 2 06-12-2008 10:02 AM
Find - battery life, CPU Usage,Wireless Signal Level , Congestion Level md_imranullah Programming 2 05-20-2008 08:45 PM


All times are GMT -5. The time now is 09:33 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration