Skip to content

Commit

Permalink
Fixed wrong wine version being used to create prefix during prelaunch…
Browse files Browse the repository at this point in the history
… phase

The wine_path parameter should be passed to the create_prefix function, otherwise the highest installed wine version will be used instead of the version selected by the user.
  • Loading branch information
SwimmingTiger committed Feb 23, 2022
1 parent b919518 commit f4b66b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lutris/runners/wine.py
Original file line number Diff line number Diff line change
Expand Up @@ -778,7 +778,7 @@ def setup_dlls(self, manager_class, enable, version):
def prelaunch(self):
if not system.path_exists(os.path.join(self.prefix_path, "user.reg")):
logger.warning("No valid prefix detected in %s, creating one...", self.prefix_path)
create_prefix(self.prefix_path, arch=self.wine_arch)
create_prefix(self.prefix_path, wine_path=self.get_executable(), arch=self.wine_arch)

prefix_manager = WinePrefixManager(self.prefix_path)
if self.runner_config.get("autoconf_joypad", False):
Expand Down

0 comments on commit f4b66b2

Please sign in to comment.