mirror of
https://github.com/lutris/lutris
synced 2024-11-02 10:19:50 +00:00
Prophylactically expand ~ for wine prefix access.
It should be expanded, but just in case it is not.
This commit is contained in:
parent
c09097491f
commit
f557e1c486
2 changed files with 3 additions and 2 deletions
|
@ -47,7 +47,8 @@ class WinePrefixManager:
|
||||||
def __init__(self, path):
|
def __init__(self, path):
|
||||||
if not path:
|
if not path:
|
||||||
logger.warning("No path specified for Wine prefix")
|
logger.warning("No path specified for Wine prefix")
|
||||||
self.path = path
|
# expanduser() just in case- it should already be expanded.
|
||||||
|
self.path = os.path.expanduser(path)
|
||||||
|
|
||||||
def get_user_dir(self, default_user=None):
|
def get_user_dir(self, default_user=None):
|
||||||
user = default_user or os.getenv("USER") or "lutrisuser"
|
user = default_user or os.getenv("USER") or "lutrisuser"
|
||||||
|
|
Loading…
Reference in a new issue