Open recluzegeek opened 5 months ago
Hi! Thank you for your feedback!
Sorry I don't know about DWM. As I could find, it is not EWMH-compliant. Since PyWinCtl heavily relies in EWMH protocol, it will not likely work or, in the best case, some issues will arise. Not sure, but I think that DWM uses a very specific and privative control protocol called dwmfifo instead.
XDG_CURRENT_DESKTOP
is already fixed in next version (assuming empty instead of crashing, but not sure if this will work in your case. I mean, it is not filling it with 'dwm' nor any other value).As I could also find, there is a DWM fork called awesome
which adds support for EWMH, amongst other features like XCB or Lua. Is it possible you switch to this one?
Thanks again!
The
getActiveWindow
function is not working as expected on Linux systems using the dwm window manager. The function is expected to return the title of the currently active window, but instead, it's throwing an error.Here's the code that I'm trying to run:
Here's the error message:
I've fixed on my system by adding this code to top of my file
It's working for now, but exhibits strange behavior, logs No active window found for the windows where this file is being executed — pycharm in this case
I'm developing an desktop app to keep track of my system usage and it'll be annoying to set up
XDG_CURRENT_DESKTOP
key manually for all other window managers.