Skip to content

Commit

Permalink
* Linux system requires DISPLAY environment variable. Fixes test_auto…
Browse files Browse the repository at this point in the history
…_backend
  • Loading branch information
Ryan Clary authored and mrclary committed May 29, 2021
1 parent c61afde commit 93ffb60
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion spyder/utils/programs.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@
REQ_ENV_VARS = []
if os.name == 'nt':
REQ_ENV_VARS.extend(['PATH', 'SYSTEMROOT', 'SYSTEMDRIVE', 'USERPROFILE'])
else:
elif sys.platform.startswith('linux'):
REQ_ENV_VARS.extend(['HOME', 'DISPLAY'])
elif sys.platform == 'darwin':
REQ_ENV_VARS.extend(['HOME'])


Expand Down

0 comments on commit 93ffb60

Please sign in to comment.