summaryrefslogtreecommitdiffhomepage
path: root/proto-wine
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2019-10-27 14:30:47 +0100
committerStanislaw Halik <sthalik@misaki.pl>2019-10-28 07:45:44 +0100
commit2f07cc9958f31e405db7498989e90755234c7c47 (patch)
tree31d6f9df67692df553e646399e7e07c3bfc834df /proto-wine
parent8601e6f1ee395a89867f404b36bc93077baff8ff (diff)
proto/wine: actually set environ
Diffstat (limited to 'proto-wine')
-rw-r--r--proto-wine/ftnoir_protocol_wine.cpp3
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);