mirror of
https://github.com/derrod/legendary.git
synced 2026-07-31 10:19:03 +00:00
Merge e61c35a5cd into eb76c9f782
This commit is contained in:
commit
f1e1954086
|
|
@ -23,6 +23,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'):
|
||||
|
|
|
|||
Loading…
Reference in a new issue