Kalmat / PyWinCtl

Cross-Platform module to get info on and control windows on screen
Other
179 stars 19 forks source link

LINUX: Fix getAllMonitors() returns empty list if XDG_CURRENT_DESKTOP is not set #78

Closed odknt closed 11 months ago

odknt commented 11 months ago

If XDG_CURRENT_DESKTOP is not set, an exception will be thrown and __remove_bad_windows() will return an empty list.

XDG_CURRENT_DESKTOP is only set in large integrated desktop environments and not in small Window Managers. Therefore, the correct list must be returned even if the environment variable is not set.

Kalmat commented 11 months ago

Hi! Sorry for my late reply. I've been out these days with no access to my "stuff". Thank you so much for your help!!!

I was not aware of that problem. Thank you so much for pointing it out and finding a solution!