heroic: apply patch to fix Steam shortcuts

+15
+2
pkgs/games/heroic/default.nix
··· 42 42 # Reverts part of upstream PR 2761 so that we don't have to use a non-free Electron fork. 43 43 # https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher/pull/2761 44 44 ./remove-drm-support.patch 45 + # Make Heroic create Steam shortcuts (to non-steam games) with the correct path to heroic. 46 + ./fix-non-steam-shortcuts.patch 45 47 ]; 46 48 47 49 configurePhase = ''
+13
pkgs/games/heroic/fix-non-steam-shortcuts.patch
··· 1 + diff --git a/src/backend/shortcuts/nonesteamgame/nonesteamgame.ts b/src/backend/shortcuts/nonesteamgame/nonesteamgame.ts 2 + index ebef6aa4..c8bd853d 100644 3 + --- a/src/backend/shortcuts/nonesteamgame/nonesteamgame.ts 4 + +++ b/src/backend/shortcuts/nonesteamgame/nonesteamgame.ts 5 + @@ -252,7 +252,7 @@ async function addNonSteamGame(props: { 6 + // add new Entry 7 + const newEntry = {} as ShortcutEntry 8 + newEntry.AppName = props.gameInfo.title 9 + - newEntry.Exe = `"${app.getPath('exe')}"` 10 + + newEntry.Exe = `"heroic"` 11 + newEntry.StartDir = `"${process.cwd()}"` 12 + 13 + if (isFlatpak) {