This commit is contained in:
Stelios Tsampas 2025-09-09 16:16:13 +00:00 committed by GitHub
commit 773bb782a2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -26,6 +26,10 @@ class LGDLFS:
def __init__(self, config_file=None): def __init__(self, config_file=None):
self.log = logging.getLogger('LGDLFS') 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'): if config_path := os.environ.get('LEGENDARY_CONFIG_PATH'):
self.path = config_path self.path = config_path
elif config_path := os.environ.get('XDG_CONFIG_HOME'): elif config_path := os.environ.get('XDG_CONFIG_HOME'):