From 2f07cc9958f31e405db7498989e90755234c7c47 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 27 Oct 2019 14:30:47 +0100 Subject: proto/wine: actually set environ --- proto-wine/ftnoir_protocol_wine.cpp | 3 +-- 1 file changed, 1 insertion(+), 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); -- cgit v1.2.3