Skip to content

Commit

Permalink
fix: wrap environment variables values in quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
cecilia-sanare committed Mar 26, 2024
1 parent 14ccf3a commit 8d34c3b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/service/protontweaks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,9 @@ export function toLaunchOptions(app: App) {

const launchOptions = [];

launchOptions.push(...environmentVariables.map(([key, value]) => `${key}=${value}`));
launchOptions.push(...environmentVariables.map(([key, value]) => `${key}="${value}"`));
launchOptions.push('%command%');
launchOptions.push(...app.tweaks.args);

console.log(launchOptions);

return launchOptions.join(' ');
}

0 comments on commit 8d34c3b

Please sign in to comment.