mirror of
https://github.com/lutris/lutris
synced 2024-09-05 07:23:32 +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
|
@ -613,7 +613,7 @@ class GameDialogCommon(SavableModelessDialog, DialogInstallUIDelegate):
|
||||||
except ValueError:
|
except ValueError:
|
||||||
ErrorDialog(_("The entered playtime is invalid"), parent=self)
|
ErrorDialog(_("The entered playtime is invalid"), parent=self)
|
||||||
return False
|
return False
|
||||||
|
|
||||||
invalid_fields = []
|
invalid_fields = []
|
||||||
runner_class = import_runner(self.runner_name)
|
runner_class = import_runner(self.runner_name)
|
||||||
runner_instance = runner_class()
|
runner_instance = runner_class()
|
||||||
|
|
|
@ -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