You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a workaround, you can create the installed_games file shown in the error in the logs with the content [].
Add logs
This is not my log, but the error I've seen looks like this:
An exception occurred when launching the game:
Error: ENOENT: no such file or directory, open '/Users/<user>/Games/Heroic/Prefixes/default/installed_games'
at Object.writeFileSync (node:fs:2368:20)
at $n (/Applications/Heroic.app/Contents/Resources/app.asar/build/main/main.js:105:1033)
at Module.Hu [as launch] (/Applications/Heroic.app/Contents/Resources/app.asar/build/main/main.js:11:5586)
With `/Users/<user>/Games/Heroic/Prefixes/default` being the `winePrefix` config of the game (default, not added intentionally by the user) and the wine selected is the paid version of Crossover.
Steps to reproduce
Install a game
Configure it to use Crossover
Run the game
Heroic tries to store the installed game info in the default prefix folder
Expected behavior
Heroic should either create that file inside the bottle OR use a different place to store that information for bottles, but not the configured prefix.
I had a similar situation, but it was failing for both Crossover and Whisky.
I created the installed_games file it didn't work in Crossover, but it did work in Whisky, after launching the game in Whisky once it worked on Crossover.
one extra difficulty was the logs didn't have the full path to the installed_games file so i didn't knew where to look before finding this post. it just showed Error: ENOENT: no such file or directory, open '.../installed_games'
Had the similar issue too. Games does not launch when using it with CrossOver
An exception occurred when launching the game: Error: ENOENT: no such file or directory, open '/Users/<user>/Games/Heroic/Prefixes/default/installed_games' at Object.writeFileSync (node:fs:2368:20) at $n (/Applications/Heroic.app/Contents/Resources/app.asar/build/main/main.js:105:1033) at processTicksAndRejections (node:internal/process/task_queues:95:5) at Module.ff [as launch] (/Applications/Heroic.app/Contents/Resources/app.asar/build/main/main.js:91:6921) at Mc (/Applications/Heroic.app/Contents/Resources/app.asar/build/main/main.js:103:10082) at WebContents.<anonymous> (node:electron/js2c/browser_init:2:83537)
Describe the bug
When a game is configured to use Crossover (the paid version), the game runs inside the bottle and NOT inside a wine prefix.
This code https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher/blob/main/src/backend/launcher.ts#L576 is not taking that into account and attempting to read/create the
installed_games
file inside the default wine prefix which can leads to either errors if the file cannot be read/created or to incorrect prefix update detection.Workaround
As a workaround, you can create the
installed_games
file shown in the error in the logs with the content[]
.Add logs
Steps to reproduce
Expected behavior
Heroic should either create that file inside the bottle OR use a different place to store that information for bottles, but not the configured prefix.
Screenshots
No response
Heroic Version
Latest Stable
System Information
Additional information
The issue was introduced by this PR #4027
I don't know if the previous
updated
detection was working for Crossover bottles before though, but maybe that diff helps to find a solution.The text was updated successfully, but these errors were encountered: