From 41d357206ac75ed3a188e63aa9244d27a4fe75b2 Mon Sep 17 00:00:00 2001 From: Bartek Stalewski Date: Wed, 15 Nov 2023 15:43:27 +0100 Subject: [PATCH] Move from os.environ to os.getenv for getting variables. --- _gui/_configs/qtile/config.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/_gui/_configs/qtile/config.py b/_gui/_configs/qtile/config.py index df7d7e6..85c030d 100644 --- a/_gui/_configs/qtile/config.py +++ b/_gui/_configs/qtile/config.py @@ -13,7 +13,7 @@ widget_defaults = dict( extension_defaults = widget_defaults.copy() # see examples/custom.py for example custom file -custom_file=os.environ['XDG_CONFIG_HOME'] + '/qtile/custom.py' +custom_file=os.getenv('XDG_CONFIG_HOME') + '/qtile/custom.py' if os.path.exists(custom_file): from custom import groups, keys, screens, wl_input_rules else: @@ -106,7 +106,7 @@ else: 24, margin=[5, 5, 0, 5] ), - wallpaper=os.environ['XDG_CONFIG_HOME'] + '/qtile/wallpaper.img', + wallpaper=os.getenv('XDG_CONFIG_HOME') + '/qtile/wallpaper.img', wallpaper_mode='fill', ), ] @@ -114,12 +114,12 @@ else: @hook.subscribe.startup_once def autostart(): - autostart=os.environ['XDG_CONFIG_HOME'] + '/qtile/autostart.sh' + autostart=os.getenv('XDG_CONFIG_HOME') + '/qtile/autostart.sh' subprocess.run([autostart]) @hook.subscribe.shutdown def autostop(): - autostop=os.environ['XDG_CONFIG_HOME'] + '/qtile/autostop.sh' + autostop=os.getenv('XDG_CONFIG_HOME') + '/qtile/autostop.sh' subprocess.run([autostop]) keys.extend([