Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to
LinuxQuestions.org , a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free.
Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please
contact us . If you need to reset your password,
click here .
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a
virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month.
Click here for more info.
03-09-2021, 06:37 AM
#1
Member
Registered: Mar 2017
Distribution: Mint, Debian, Q4OS, Mageia, KDE Neon
Posts: 369
Rep:
To what process does this window belong to ?
Dear LQ,
I was looking at xprop. Sometimes, it prints WM_COMMAND and I can figure out what process a window belongs to, but sometimes WM_COMMAND isn't printed (tried with libreoffice and firefox).
Is there a more consistent way to determine to which process a desktop window belongs to ?
03-09-2021, 07:19 AM
#2
Senior Member
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US( + travel,) Earth&Mars (I wish,) END BORDER$!◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that work on freest-HW; has been KDE, CLI, Novena-SBC but open.. http://goo.gl/NqgqJx &c ;-)
Posts: 4,888
Hi.
Quote:
...
If you just have a window in front of you and don't know its ID yet — it's easy to find it out. Just open a terminal next to the window in question, run xwininfo there and click on that window. xwininfo will show you the window-id.
So let's assume you know a window-id, e.g. 0x1600045, and want to find, what's the process owning it.
The easiest way to check who that window belongs to is to run XKillClient for it i.e.:
...
Code:
xkill -id 0x1600045
--
https://unix.stackexchange.com/quest...his-x11-window
Just a quick search example:
linux window process info if I had my laptop I'd try it and see, you're on Debian-KDE?
Add: some process managers (like
top for example or GUI ones) have a lot of extra tweaks...
Last edited by jamison20000e; 03-09-2021 at 07:35 AM .
Reason: Link and added
1 members found this post helpful.
03-09-2021, 07:22 AM
#3
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,996
03-10-2021, 12:40 AM
#4
Member
Registered: Mar 2017
Distribution: Mint, Debian, Q4OS, Mageia, KDE Neon
Posts: 369
Original Poster
Rep:
Quote:
Originally Posted by
jamison20000e
you're on Debian-KDE?
Mint KDE
03-10-2021, 12:51 AM
#5
Member
Registered: Mar 2017
Distribution: Mint, Debian, Q4OS, Mageia, KDE Neon
Posts: 369
Original Poster
Rep:
Quote:
Originally Posted by
jamison20000e
You forgot to quote the next sentence
Quote:
and see which process just died. But only if you don't mind killing it of course!
1 members found this post helpful.
03-10-2021, 01:14 AM
#6
Member
Registered: Mar 2017
Distribution: Mint, Debian, Q4OS, Mageia, KDE Neon
Posts: 369
Original Poster
Rep:
The ID reported by xprop for vlc doesn't match that by xlsclient
xprop
Quote:
ychaouche#ychaouche-PC 08:00:07 ~ $ xprop
_NET_WM_USER_TIME(CARDINAL) = 2231305
_NET_WM_ICON_GEOMETRY(CARDINAL) = 1275, 1029, 200, 51
_NET_WM_ALLOWED_ACTIONS(ATOM) = _NET_WM_ACTION_MOVE, _NET_WM_ACTION_RESIZE, _NET_WM_ACTION_MINIMIZE, _NET_WM_ACTION_SHADE, _NET_WM_ACTION_MAXIMIZE_VERT, _NET_WM_ACTION_MAXIMIZE_HORZ, _NET_WM_ACTION_FULLSCREEN, _NET_WM_ACTION_CHANGE_DESKTOP, _NET_WM_ACTION_CLOSE
_KDE_NET_WM_FRAME_STRUT(CARDINAL) = 2, 2, 23, 4
_NET_FRAME_EXTENTS(CARDINAL) = 2, 2, 23, 4
_NET_WM_DESKTOP(CARDINAL) = 1
_KDE_NET_WM_ACTIVITIES(STRING) = "a7148778-9688-49c4-8b04-9bdea396fbbc"
WM_STATE(WM_STATE):
window state: Normal
icon window: 0x0
_NET_WM_STATE(ATOM) = _NET_WM_STATE_MAXIMIZED_VERT
_NET_WM_SYNC_REQUEST_COUNTER(CARDINAL) = 71303208
_NET_WM_ICON(CARDINAL) = Icon (48 x 48):
░░░
░░░░░░
▒░░░░▒
▒░░░░▒
░░░░░░▒░
▒░░░░░░▒
▒░░░░░░▒
░ ░
░
░ ░
░
░ ░ ░
░ ░
░
░░ ░ ░
▒░░ ░░▒▒
▒▒░░░░░░░░░▒▒▒
░▒▒░░░░░░░░░░▒▒░
▒▒▒░░░░░░░░░░▒▒░
▒▒▒░░░░░░░░░░▒▒▒
░▒▒░░░░░░░░░░░▒▒▒
▒▒▒░░░░░░░░░░░▒▒▒░
▒▒▒░░░░░░░░░░░▒▒▒▒
▒▒▒░░░░░░░░░░░░▒▒▒
░ ░░░░░░░░░░░░░░▒░░
░░ ░ ░░░░░░░░░░░ ░ ░
░ ░ ░ ░░
░ ░ ░ ░ ░
░░ ░ ░ ░ ░
░░▒░░ ░ ░ ░ ░░▒▒▒▒
░░░▒▒ ░ ░ ░ ░ ░▒▒▒▒░
░░▒▒▒▒ ░ ░ ░ ░▒▒▒▒▒▒
░░▒▒▒▒░ ░ ░ ░▒▒▒▒▒▒▒
░░░░▒▒▒▒▒░░ ░░░▒▒▒▒▒▒▒▒░
░░░░▒▒▒▒▒▒▒░░░░░░░░░░░░░▒▒▒▒▒▒▒▒▒░
░░░░▒▒▒▒▒▒▒░░▒▒░░░░░░░░░▒▒▒▒▒▒▒▒▒░
░░░░░▒▒▒▒▒▒▒░▒▒▒░░░░░░░░░▒▒▒▒▒▒░░░░
░░░░░░▒▒▒▒▒▒░▒▒▒░░░░░░░░░▒▒▒▒▒░░░░░░
░░░░░░░░▒▒▒▒▒▒▒▒░░░░░░░░░░▒▒░░░░░░░░
░░░░░░░░░░░░▒▒▒▒▒░░░░░░░░░░░░░░░░░░░
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
░ ░░░░░░░░░░░░
▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
Icon (32 x 32):
░░░
░░░▒
░░░░
░░░░░░
░░░░░░
░
░
░
░ ░
░
░▒░░░░░░▒░
▒▒░░░░░░▒▒
▒░░░░░░░▒▒
░▒░░░░░░░▒▒░
▒▒░░░░░░░░▒▒
░▒░░░░░░░░▒▒
░ ░░░░░░░░░░
░ ░ ░░
░░ ░░░░░
░▒▒░ ░ ░ ░░▒▒▒
░▒▒░░ ░ ░▒▒▒░
░░▒▒▒░░ ░░░▒▒▒▒░
░░▒▒▒▒▒░░░░░░░░░▒▒▒▒▒▒
░░▒▒▒▒▒░▒▒░░░░░░▒▒▒▒░░
░░░░▒▒▒▒▒▒▒░░░░░░▒▒░░░░
░░░░░░░▒▒▒▒▒░░░░░░░░░░░░
░░░░░░░░░░░░░░░░░░░░░░░░
░░░░░░░░░░░░░░░░░░░░░░░░
░ ░
░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░
_KDE_NET_WM_USER_CREATION_TIME(CARDINAL) = 1736264
XdndAware(ATOM) = BITMAP
_MOTIF_DRAG_RECEIVER_INFO(_MOTIF_DRAG_RECEIVER_INFO) = 0x6c, 0x0, 0x5, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x10, 0x0, 0x0, 0x0
_NET_WM_NAME(UTF8_STRING) = "Track02.mp3 - VLC media player"
WM_CLIENT_LEADER(WINDOW): window id # 0x4400005
WM_WINDOW_ROLE(STRING) = "vlc-main"
_NET_WM_PID(CARDINAL) = 6907
_NET_WM_WINDOW_TYPE(ATOM) = _NET_WM_WINDOW_TYPE_NORMAL
_MOTIF_WM_HINTS(_MOTIF_WM_HINTS) = 0x3, 0x3e, 0x7e, 0x0, 0x0
WM_PROTOCOLS(ATOM): protocols WM_DELETE_WINDOW, WM_TAKE_FOCUS, _NET_WM_PING, _NET_WM_SYNC_REQUEST
WM_NAME(STRING) = "Track02.mp3 - VLC media player"
WM_LOCALE_NAME(STRING) = "en_US.UTF-8"
WM_CLASS(STRING) = "vlc", "Vlc"
WM_HINTS(WM_HINTS):
Client accepts input or input focus: True
Initial state is Normal State.
bitmap id # to use for icon: 0x4400017
window id # of group leader: 0x4400005
WM_NORMAL_HINTS(WM_SIZE_HINTS):
user specified location: -2, 0
program specified location: -2, 0
user specified size: 1466 by 996
program specified size: 1466 by 996
program specified minimum size: 472 by 404
window gravity: NorthWest
WM_CLIENT_MACHINE(STRING) = "ychaouche-PC"
WM_COMMAND(STRING) = { "vlc" }
ychaouche#ychaouche-PC 08:10:35 ~ $
xlsclients -l
Quote:
ychaouche#ychaouche-PC 08:13:00 ~ $ xlsclients -l
Window 0x1000002:
Machine: ychaouche-PC
Name: kded4
Command: kded4
Instance/Class: kded4/Kded4
Window 0x100000a:
Machine: ychaouche-PC
Name: kded4
Command: kded4
Instance/Class: kded4/Kded4
Window 0x1400002:
Machine: ychaouche-PC
Name: kglobalaccel
Command: /usr/bin/kglobalaccel
Instance/Class: kglobalaccel/Kglobalaccel
Window 0x140000a:
Machine: ychaouche-PC
Name: kglobalaccel
Command: /usr/bin/kglobalaccel
Instance/Class: kglobalaccel/Kglobalaccel
Window 0x1000014:
Machine: ychaouche-PC
Name: kded4
Command: kded4
Instance/Class: kded4/Kded4
Window 0x1a00002:
Machine: ychaouche-PC
Name: Qt-subapplication
Command: ksmserver
Instance/Class: Qt-subapplication/Ksmserver
Window 0x1a0000a:
Machine: ychaouche-PC
Name: Qt-subapplication
Command: ksmserver
Instance/Class: Qt-subapplication/Ksmserver
Window 0x1200002:
Machine: ychaouche-PC
Name: kactivitymanagerd
Command: /usr/bin/kactivitymanagerd
Instance/Class: kactivitymanagerd/Kactivitymanagerd
Window 0x120000a:
Machine: ychaouche-PC
Name: kactivitymanagerd
Command: /usr/bin/kactivitymanagerd
Instance/Class: kactivitymanagerd/Kactivitymanagerd
Window 0x1200012:
Machine: ychaouche-PC
Name: kactivitymanagerd
Command: /usr/bin/kactivitymanagerd
Instance/Class: kactivitymanagerd/Kactivitymanagerd
Window 0x1e00002:
Machine: ychaouche-PC
Name: kdeconnectd
Command: /usr/lib/kde4/libexec/kdeconnectd
Instance/Class: kdeconnectd/Kdeconnectd
Window 0x1e0000a:
Machine: ychaouche-PC
Name: kdeconnectd
Command: /usr/lib/kde4/libexec/kdeconnectd
Instance/Class: kdeconnectd/Kdeconnectd
Window 0x2200002:
Machine: ychaouche-PC
Name: kwin
Command: kwin
Instance/Class: kwin/Kwin
Window 0x2200009:
Machine: ychaouche-PC
Name: kwin
Command: kwin
Instance/Class: kwin/Kwin
Window 0x220001e:
Machine: ychaouche-PC
Name: kwin
Command: kwin
Instance/Class: kwin/Kwin
Window 0x2600002:
Machine: ychaouche-PC
Name: plasma-desktop
Command: /usr/bin/plasma-desktop
Instance/Class: plasma-desktop/Plasma-desktop
Window 0x260000a:
Machine: ychaouche-PC
Name: plasma-desktop
Command: /usr/bin/plasma-desktop
Instance/Class: plasma-desktop/Plasma-desktop
Window 0x260001a:
Machine: ychaouche-PC
Name: plasma-desktop
Command: /usr/bin/plasma-desktop
Instance/Class: plasma-desktop/Plasma-desktop
Window 0x220002a:
Machine: ychaouche-PC
Name: kwin
Command: kwin
Instance/Class: kwin/Kwin
Window 0x2600023:
Machine: ychaouche-PC
Name: plasma-desktop
Command: /usr/bin/plasma-desktop
Instance/Class: plasma-desktop/Plasma-desktop
Window 0x260002b:
Machine: ychaouche-PC
Name: plasma-desktop
Command: /usr/bin/plasma-desktop
Instance/Class: plasma-desktop/Plasma-desktop
Window 0x2600042:
Machine: ychaouche-PC
Name: plasma-desktop
Command: /usr/bin/plasma-desktop
Instance/Class: plasma-desktop/Plasma-desktop
Window 0x260004a:
Machine: ychaouche-PC
Name: plasma-desktop
Command: /usr/bin/plasma-desktop
Instance/Class: plasma-desktop/Plasma-desktop
Window 0x2600052:
Machine: ychaouche-PC
Name: plasma-desktop
Command: /usr/bin/plasma-desktop
Instance/Class: plasma-desktop/Plasma-desktop
Window 0x260005a:
Machine: ychaouche-PC
Name: plasma-desktop
Command: /usr/bin/plasma-desktop
Instance/Class: plasma-desktop/Plasma-desktop
Window 0x2600062:
Machine: ychaouche-PC
Name: plasma-desktop
Command: /usr/bin/plasma-desktop
Instance/Class: plasma-desktop/Plasma-desktop
Window 0x260006a:
Machine: ychaouche-PC
Name: plasma-desktop
Command: /usr/bin/plasma-desktop
Instance/Class: plasma-desktop/Plasma-desktop
Window 0x2600072:
Machine: ychaouche-PC
Name: plasma-desktop
Command: /usr/bin/plasma-desktop
Instance/Class: plasma-desktop/Plasma-desktop
Window 0x260007e:
Machine: ychaouche-PC
Name: plasma-desktop
Command: /usr/bin/plasma-desktop
Instance/Class: plasma-desktop/Plasma-desktop
Window 0x1c00002:
Machine: ychaouche-PC
Name: knotify4
Command: /usr/bin/knotify4
Instance/Class: knotify4/Knotify4
Window 0x1c0000a:
Machine: ychaouche-PC
Name: knotify4
Command: /usr/bin/knotify4
Instance/Class: knotify4/Knotify4
Window 0x260008a:
Machine: ychaouche-PC
Name: plasma-desktop
Command: /usr/bin/plasma-desktop
Instance/Class: plasma-desktop/Plasma-desktop
Window 0x2600096:
Machine: ychaouche-PC
Name: plasma-desktop
Command: /usr/bin/plasma-desktop
Instance/Class: plasma-desktop/Plasma-desktop
Window 0x26000a4:
Machine: ychaouche-PC
Name: plasma-desktop
Command: /usr/bin/plasma-desktop
Instance/Class: plasma-desktop/Plasma-desktop
Window 0x26000b6:
Machine: ychaouche-PC
Name: plasma-desktop
Command: /usr/bin/plasma-desktop
Instance/Class: plasma-desktop/Plasma-desktop
Window 0x26000c1:
Machine: ychaouche-PC
Name: plasma-desktop
Command: /usr/bin/plasma-desktop
Instance/Class: plasma-desktop/Plasma-desktop
Window 0x2800002:
Machine: ychaouche-PC
Name: kuiserver
Command: /usr/bin/kuiserver
Instance/Class: kuiserver/Kuiserver
Window 0x280000a:
Machine: ychaouche-PC
Name: kuiserver
Command: /usr/bin/kuiserver
Instance/Class: kuiserver/Kuiserver
Window 0x26000d6:
Machine: ychaouche-PC
Name: plasma-desktop
Command: /usr/bin/plasma-desktop
Instance/Class: plasma-desktop/Plasma-desktop
Window 0x260013c:
Machine: ychaouche-PC
Name: plasma-desktop
Command: /usr/bin/plasma-desktop
Instance/Class: plasma-desktop/Plasma-desktop
Window 0x3000007:
Machine: ychaouche-PC
Name: kmix
Command: /usr/bin/kmix
Instance/Class: kmix/Kmix
Window 0xc00034:
Machine: ychaouche-PC
Name: krunner
Command: /usr/bin/krunner
Instance/Class: krunner/Krunner
Window 0xc000b0:
Machine: ychaouche-PC
Name: Run Command
Command: /usr/bin/krunner
Instance/Class: krunner/krunner
Window 0x3000020:
Machine: ychaouche-PC
Name: kmix
Command: /usr/bin/kmix
Instance/Class: kmix/Kmix
Window 0x3000024:
Machine: ychaouche-PC
Name: kmix
Command: /usr/bin/kmix
Instance/Class: kmix/Kmix
Window 0x3000030:
Machine: ychaouche-PC
Name: <unknown type COMPOUND_TEXT (363) or format 8>
Command: /usr/bin/kmix
Instance/Class: kmix/Kmix
Window 0x2400002:
Machine: ychaouche-PC
Name: konsole
Command: /usr/bin/konsole
Instance/Class: konsole/Konsole
Window 0x240000a:
Machine: ychaouche-PC
Name: konsole
Command: /usr/bin/konsole
Instance/Class: konsole/Konsole
Window 0x2400012:
Machine: ychaouche-PC
Name: konsole
Command: /usr/bin/konsole
Instance/Class: konsole/Konsole
Window 0x4e00001:
'' Command: /opt/libreoffice7.0/program/soffice
Window 0x26000a1:
Machine: ychaouche-PC
Name: plasma-desktop
Command: /usr/bin/plasma-desktop
Instance/Class: plasma-desktop/Plasma-desktop
Machine: ychaouche-PC
Name: vlc
Command: vlc
Instance/Class: vlc/Vlc
Window 0x2600487:
Machine: ychaouche-PC
Name: plasma-desktop
Command: /usr/bin/plasma-desktop
Instance/Class: plasma-desktop/Plasma-desktop
Window 0x3000014:
Machine: ychaouche-PC
Name: kmix
Command: /usr/bin/kmix
Instance/Class: kmix/Kmix
Window 0x1800001:
Machine: ychaouche-PC
Name: Firefox
Icon Name: firefox
Command: firefox
Instance/Class: firefox/Firefox
Window 0x3200001:
Machine: ychaouche-PC
Name: Thunderbird
Icon Name: thunderbird
Command: thunderbird
Instance/Class: thunderbird/Thunderbird
Window 0x1600001:
Machine: ychaouche-PC
Name: /home/ychaouche/DOWNLOADS/APPS/firefox/firefox-bin
Icon Name: /home/ychaouche/DOWNLOADS/APPS/firefox/firefox-bin
Command: /home/ychaouche/DOWNLOADS/APPS/firefox/firefox-bin
Instance/Class: /home/ychaouche/DOWNLOADS/APPS/firefox/firefox-bin//home/ychaouche/DOWNLOADS/APPS/firefox/firefox-bin
Window 0x3400001:
Machine: ychaouche-PC
Name: /home/ychaouche/DOWNLOADS/APPS/firefox/firefox-bin
Icon Name: /home/ychaouche/DOWNLOADS/APPS/firefox/firefox-bin
Command: /home/ychaouche/DOWNLOADS/APPS/firefox/firefox-bin
Instance/Class: /home/ychaouche/DOWNLOADS/APPS/firefox/firefox-bin//home/ychaouche/DOWNLOADS/APPS/firefox/firefox-bin
Window 0x3e00001:
Machine: ychaouche-PC
Name: /home/ychaouche/DOWNLOADS/APPS/firefox/firefox-bin
Icon Name: /home/ychaouche/DOWNLOADS/APPS/firefox/firefox-bin
Command: /home/ychaouche/DOWNLOADS/APPS/firefox/firefox-bin
Instance/Class: /home/ychaouche/DOWNLOADS/APPS/firefox/firefox-bin//home/ychaouche/DOWNLOADS/APPS/firefox/firefox-bin
Window 0x4a00001:
Machine: ychaouche-PC
Name: /home/ychaouche/DOWNLOADS/APPS/firefox/firefox-bin
Icon Name: /home/ychaouche/DOWNLOADS/APPS/firefox/firefox-bin
Command: /home/ychaouche/DOWNLOADS/APPS/firefox/firefox-bin
Instance/Class: /home/ychaouche/DOWNLOADS/APPS/firefox/firefox-bin//home/ychaouche/DOWNLOADS/APPS/firefox/firefox-bin
Window 0x3c00001:
Machine: ychaouche-PC
Name: emacs
Icon Name: emacs
Command: emacs
Instance/Class: emacs/Emacs
Window 0x4200001:
Machine: ychaouche-PC
Name: /home/ychaouche/DOWNLOADS/APPS/firefox/firefox-bin
Icon Name: /home/ychaouche/DOWNLOADS/APPS/firefox/firefox-bin
Command: /home/ychaouche/DOWNLOADS/APPS/firefox/firefox-bin
Instance/Class: /home/ychaouche/DOWNLOADS/APPS/firefox/firefox-bin//home/ychaouche/DOWNLOADS/APPS/firefox/firefox-bin
Window 0x4800001:
Machine: ychaouche-PC
Name: /home/ychaouche/DOWNLOADS/APPS/firefox/firefox-bin
Icon Name: /home/ychaouche/DOWNLOADS/APPS/firefox/firefox-bin
Command: /home/ychaouche/DOWNLOADS/APPS/firefox/firefox-bin
Instance/Class: /home/ychaouche/DOWNLOADS/APPS/firefox/firefox-bin//home/ychaouche/DOWNLOADS/APPS/firefox/firefox-bin
Window 0x4c00001:
Machine: ychaouche-PC
Name: /home/ychaouche/DOWNLOADS/APPS/firefox/firefox-bin
Icon Name: /home/ychaouche/DOWNLOADS/APPS/firefox/firefox-bin
Command: /home/ychaouche/DOWNLOADS/APPS/firefox/firefox-bin
Instance/Class: /home/ychaouche/DOWNLOADS/APPS/firefox/firefox-bin//home/ychaouche/DOWNLOADS/APPS/firefox/firefox-bin
Window 0x3600001:
Machine: ychaouche-PC
Name: /home/ychaouche/DOWNLOADS/APPS/firefox/firefox-bin
Icon Name: /home/ychaouche/DOWNLOADS/APPS/firefox/firefox-bin
Command: /home/ychaouche/DOWNLOADS/APPS/firefox/firefox-bin
Instance/Class: /home/ychaouche/DOWNLOADS/APPS/firefox/firefox-bin//home/ychaouche/DOWNLOADS/APPS/firefox/firefox-bin
Window 0x3a00001:
Machine: ychaouche-PC
Name: /home/ychaouche/DOWNLOADS/APPS/firefox/firefox-bin
Icon Name: /home/ychaouche/DOWNLOADS/APPS/firefox/firefox-bin
Command: /home/ychaouche/DOWNLOADS/APPS/firefox/firefox-bin
Instance/Class: /home/ychaouche/DOWNLOADS/APPS/firefox/firefox-bin//home/ychaouche/DOWNLOADS/APPS/firefox/firefox-bin
Window 0x4000001:
Machine: ychaouche-PC
Name: /home/ychaouche/DOWNLOADS/APPS/firefox/firefox-bin
Icon Name: /home/ychaouche/DOWNLOADS/APPS/firefox/firefox-bin
Command: /home/ychaouche/DOWNLOADS/APPS/firefox/firefox-bin
Instance/Class: /home/ychaouche/DOWNLOADS/APPS/firefox/firefox-bin//home/ychaouche/DOWNLOADS/APPS/firefox/firefox-bin
Window 0x2400050:
Machine: ychaouche-PC
Name: <unknown type COMPOUND_TEXT (363) or format 8>
Command: /usr/bin/konsole
Instance/Class: konsole/Konsole
Window 0x240006d:
Machine: ychaouche-PC
Name: <unknown type COMPOUND_TEXT (363) or format 8>
Command: /usr/bin/konsole
Instance/Class: konsole/Konsole
Window 0x2400047:
Machine: ychaouche-PC
Name: <unknown type COMPOUND_TEXT (363) or format 8>
Command: /usr/bin/konsole
Instance/Class: konsole/Konsole
Window 0x2400064:
Machine: ychaouche-PC
Name: <unknown type COMPOUND_TEXT (363) or format 8>
Command: /usr/bin/konsole
Instance/Class: konsole/Konsole
Window 0x240005b:
Machine: ychaouche-PC
Name: <unknown type COMPOUND_TEXT (363) or format 8>
Command: /usr/bin/konsole
Instance/Class: konsole/Konsole
Window 0x240003d:
Machine: ychaouche-PC
Name: <unknown type COMPOUND_TEXT (363) or format 8>
Command: /usr/bin/konsole
Instance/Class: konsole/Konsole
Window 0x2400079:
Machine: ychaouche-PC
Name: <unknown type COMPOUND_TEXT (363) or format 8>
Command: /usr/bin/konsole
Instance/Class: konsole/Konsole
Machine: ychaouche-PC
Name: Track10.mp3 - VLC media player
Command: vlc
Instance/Class: vlc/Vlc
Window 0x260012b:
Machine: ychaouche-PC
Name: plasma-desktop
Command: /usr/bin/plasma-desktop
Instance/Class: Plasma/Plasma
Window 0x240001d:
Machine: ychaouche-PC
Name: <unknown type COMPOUND_TEXT (363) or format 8>
Command: /usr/bin/konsole
Instance/Class: konsole/Konsole
Window 0x2600122:
Machine: ychaouche-PC
Name: plasma-desktop
Command: /usr/bin/plasma-desktop
Instance/Class: Plasma/Plasma
Window 0x3000028:
Machine: ychaouche-PC
Name: KDE Mixer - Playback Devices
Command: /usr/bin/kmix
Instance/Class: kmix/Kmix
ychaouche#ychaouche-PC 08:13:04 ~ $
03-10-2021, 01:26 AM
#7
Member
Registered: Mar 2017
Distribution: Mint, Debian, Q4OS, Mageia, KDE Neon
Posts: 369
Original Poster
Rep:
I found the solution given in the question itself (using _NET_WM_PID )
to work pretty well so far. Tested it on konsole, vlc, emacs, systemconfig,
libreoffice and firefox. All reported their PID. Until I find an exception,
I'll probably stick with that !
Thanks for the links guys
03-10-2021, 02:10 AM
#8
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,996
that was what I posted.....
anyway, this is finally solved.
03-10-2021, 03:32 AM
#9
Member
Registered: Mar 2017
Distribution: Mint, Debian, Q4OS, Mageia, KDE Neon
Posts: 369
Original Poster
Rep:
Quote:
Originally Posted by
pan64
that was what I posted.....
anyway, this is finally solved.
Thank you pan64 I saw your post and link. The stackexchange link
mentioned that the author didn't want to rely on
_NET_WM_PID
though, because he thinks some apps might not set.
It's always interesting to see the many ways you can implement the
solution based on the same data. Here's what I came up with :
Code:
alias wid='xprop | (pid=$(command grep PID); echo ${pid##*=}) | xargs ps'
usage :
Code:
ychaouche#ychaouche-PC 10:31:11 ~ $ wid <click>
PID TTY STAT TIME COMMAND
9531 ? Sl 0:26 /usr/bin/xchat
ychaouche#ychaouche-PC 10:31:16 ~ $
07-21-2022, 08:00 AM
#10
Member
Registered: Mar 2017
Distribution: Mint, Debian, Q4OS, Mageia, KDE Neon
Posts: 369
Original Poster
Rep:
Quote:
Originally Posted by
ychaouche
Code:
alias wid='xprop | (pid=$(command grep PID); echo ${pid##*=}) | xargs ps'
I shouldn't need that xargs, what do you guys think of
Code:
ps $(xprop | (pid=$(command grep PID); echo ${pid##*=}))
All times are GMT -5. The time now is 09:22 PM .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know .
Latest Threads
LQ News