Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / games / r2modman / steam-launch-fix.patch
blob4a52c8fdb359a3314e57f8d91cddba684dd3a99b
1 diff --git a/src/r2mm/launching/runners/linux/SteamGameRunner_Linux.ts b/src/r2mm/launching/runners/linux/SteamGameRunner_Linux.ts
2 index ddee0e9..fc9ffca 100644
3 --- a/src/r2mm/launching/runners/linux/SteamGameRunner_Linux.ts
4 +++ b/src/r2mm/launching/runners/linux/SteamGameRunner_Linux.ts
5 @@ -61,15 +61,9 @@ export default class SteamGameRunner_Linux extends GameRunnerProvider {
6 async start(game: Game, args: string): Promise<void | R2Error> {
8 const settings = await ManagerSettings.getSingleton(game);
9 - const steamDir = await GameDirectoryResolverProvider.instance.getSteamDirectory();
10 - if(steamDir instanceof R2Error) {
11 - return steamDir;
12 - }
14 - LoggerProvider.instance.Log(LogSeverity.INFO, `Steam directory is: ${steamDir}`);
16 try {
17 - const cmd = `"${steamDir}/steam.sh" -applaunch ${game.activePlatform.storeIdentifier} ${args} ${settings.getContext().gameSpecific.launchParameters}`;
18 + const cmd = `steam -applaunch ${game.activePlatform.storeIdentifier} ${args} ${settings.getContext().gameSpecific.launchParameters}`;
19 LoggerProvider.instance.Log(LogSeverity.INFO, `Running command: ${cmd}`);
20 await exec(cmd);
21 } catch(err) {