Does anyone know how to get a window icon by PID in Linux? Me interest only examples on C++ with Xlib or on Java with JNA.
PS. Excuse me for my English.
Does anyone know how to get a window icon by PID in Linux? Me interest only examples on C++ with Xlib or on Java with JNA.
PS. Excuse me for my English.
You could use GTK, loop through open windows, check their PID and grab the icon from the window:
How to get icon/icon's path of running app in linux/windows?