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

Crash if DISPLAY is empty string #46

Open
rubenverhack opened this issue Nov 30, 2021 · 0 comments
Open

Crash if DISPLAY is empty string #46

rubenverhack opened this issue Nov 30, 2021 · 0 comments

Comments

@rubenverhack
Copy link

if 'DISPLAY' in os.environ:

Ran into an issue using this library. When os.environ['DISPLAY'] is an empty string, then it will perform the split based on ':' which has no second element. Rather than just checking if DISPLAY is set, it should check if it is set with a correct format.

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

No branches or pull requests

1 participant