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

Please Consider Checking HAS_DISPLAY dynamically #236

Open
mode9 opened this issue Dec 7, 2022 · 0 comments
Open

Please Consider Checking HAS_DISPLAY dynamically #236

mode9 opened this issue Dec 7, 2022 · 0 comments

Comments

@mode9
Copy link

mode9 commented Dec 7, 2022

HAS_DISPLAY is defined globally.

HAS_DISPLAY = os.getenv("DISPLAY", False)

It means that pyperclip should always be imported dynamically after DISPLAY is changed.
Checking DISPLAY when copy/paste called may be good enough.

@mode9 mode9 changed the title Please Consider Check HAS_DISPLAY dynamically Please Consider Checking HAS_DISPLAY dynamically Dec 7, 2022
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