diff --git a/legendary/lfs/lgndry.py b/legendary/lfs/lgndry.py index 2e9b0bf..b1d2c3a 100644 --- a/legendary/lfs/lgndry.py +++ b/legendary/lfs/lgndry.py @@ -26,6 +26,10 @@ class LGDLFS: def __init__(self, config_file=None): self.log = logging.getLogger('LGDLFS') + # This can happen only when running in Wine under an OS using freedesktop + if os.name == 'nt' and os.environ.get('XDG_CONFIG_HOME', None): + del os.environ['XDG_CONFIG_HOME'] + if config_path := os.environ.get('LEGENDARY_CONFIG_PATH'): self.path = config_path elif config_path := os.environ.get('XDG_CONFIG_HOME'):