diff --git a/lib/proton.dart b/lib/proton.dart index 152826c..439e5b2 100644 --- a/lib/proton.dart +++ b/lib/proton.dart @@ -42,13 +42,14 @@ class ProtonState extends State { } else { await dir.create(recursive: true); } - Platform.environment.putIfAbsent( - "STEAM_COMPAT_CLIENT_INSTALL_PATH", () => "~/.steam"); - Platform.environment - .putIfAbsent("STEAM_COMPAT_DATA_PATH", () => dir.path); + Map env = Map(); + env.putIfAbsent( + "STEAM_COMPAT_CLIENT_INSTALL_PATH", () => "~/.steam"); + env.putIfAbsent("STEAM_COMPAT_DATA_PATH", () => dir.path); await Process.run( - "proton", ["run", "this_program_does_not_exist.exe"]); + "proton", ["run", "this_program_does_not_exist.exe"], + environment: env); }, ) ]),