diff --git a/lutris/runners/commands/wine.py b/lutris/runners/commands/wine.py index 84f637877..72c52174e 100644 --- a/lutris/runners/commands/wine.py +++ b/lutris/runners/commands/wine.py @@ -338,7 +338,11 @@ def wineexec( if proton.is_proton_path(wine_path): game = None wineenv["GAMEID"] = proton.get_game_id(game) - wineenv["PROTONPATH"] = proton.get_proton_path_from_bin(wine_path) + + if wine_path == GE_PROTON_LATEST: + wine_path = proton.get_umu_path() + else: + wineenv["PROTONPATH"] = proton.get_proton_path_from_bin(wine_path) locale = env.get("LC_ALL") host_locale = env.get("HOST_LC_ALL") if locale and not host_locale: @@ -348,9 +352,6 @@ def wineexec( baseenv.update(wineenv) baseenv.update(env) - if proton.is_proton_path(wine_path): - wine_path = proton.get_umu_path() - command_parameters = [wine_path] if executable: command_parameters.append(executable)