Add environment to process spin up command
This commit is contained in:
parent
711eb44270
commit
93793ff300
1 changed files with 6 additions and 5 deletions
|
@ -42,13 +42,14 @@ class ProtonState extends State<Proton> {
|
|||
} 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<String, String> 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);
|
||||
},
|
||||
)
|
||||
]),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue