mirror of
https://github.com/kbumsik/VirtScreen.git
synced 2025-03-09 15:40:18 +00:00
Added os.environ.get calls to prevent the assumption that the environment variables are set, which causes a KeyError.
This commit is contained in:
parent
f62fa66f51
commit
4a3a8e8e16
2 changed files with 2 additions and 2 deletions
|
|
@ -79,7 +79,7 @@ def main() -> None:
|
|||
|
||||
def check_env(msg: Callable[[str], None]) -> None:
|
||||
"""Check enveironments before start"""
|
||||
if os.environ['XDG_SESSION_TYPE'].lower() == 'wayland':
|
||||
if os.environ.get('XDG_SESSION_TYPE', '').lower() == 'wayland':
|
||||
msg("Currently Wayland is not supported")
|
||||
sys.exit(1)
|
||||
if not HOME_PATH:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue