diff options
-rw-r--r-- | proto-wine/ftnoir_protocol_wine.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/proto-wine/ftnoir_protocol_wine.cpp b/proto-wine/ftnoir_protocol_wine.cpp index a2a49940..719da51f 100644 --- a/proto-wine/ftnoir_protocol_wine.cpp +++ b/proto-wine/ftnoir_protocol_wine.cpp @@ -57,14 +57,13 @@ module_status wine::initialize() static const QString library_path(OPENTRACK_BASE_PATH + OPENTRACK_LIBRARY_PATH); QString wine_path = "wine"; - auto env = QProcessEnvironment::systemEnvironment(); if (s.variant_proton) { QProcessEnvironment make_steam_environ(const QString& proton_version); QString proton_path(const QString& proton_version); - env = make_steam_environ(s.proton_version); wine_path = proton_path(s.proton_version); + wrapper.setProcessEnvironment(make_steam_environ(s.proton_version)); } wrapper.setWorkingDirectory(OPENTRACK_BASE_PATH); |