Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Oct 4, 2023

Conversation

odknt
Copy link
Contributor

@odknt odknt commented Sep 23, 2023

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
Copy link
Owner

Kalmat commented Oct 4, 2023

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!

@Kalmat Kalmat merged commit 464f64c into Kalmat:master Oct 4, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants