blob: 1338c7a86a6804b5845b8b46e85e43c5ef13ec45 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
diff --git a/src/backend/shortcuts/nonesteamgame/nonesteamgame.ts b/src/backend/shortcuts/nonesteamgame/nonesteamgame.ts
index 28c917ce..55055d76 100644
--- a/src/backend/shortcuts/nonesteamgame/nonesteamgame.ts
+++ b/src/backend/shortcuts/nonesteamgame/nonesteamgame.ts
@@ -255,7 +255,7 @@ async function addNonSteamGame(game: Game): Promise<boolean> {
// add new Entry
const newEntry = {} as ShortcutEntry
newEntry.AppName = gameInfo.title
- newEntry.Exe = `"${app.getPath('exe')}"`
+ newEntry.Exe = `"/usr/bin/heroic"`
newEntry.StartDir = `"${process.cwd()}"`
if (isFlatpak) {
diff --git a/src/backend/shortcuts/shortcuts/shortcuts.ts b/src/backend/shortcuts/shortcuts/shortcuts.ts
index 528d3e5b..7aefc0c8 100644
--- a/src/backend/shortcuts/shortcuts/shortcuts.ts
+++ b/src/backend/shortcuts/shortcuts/shortcuts.ts
@@ -224,9 +224,7 @@ async function generateMacOsApp(gameInfo: GameInfo) {
writeFileSync(plistFile, plist)
// write the run.sh file
- const launchCommand = `${app.getPath(
- 'exe'
- )} --no-gui heroic://launch?appName=${app_name}&runner=${runner}`
+ const launchCommand = `/usr/bin/heroic --no-gui heroic://launch?appName=${app_name}&runner=${runner}`
const shortcut = `#!/bin/bash
# autogenerated file - do not edit
|