Heroic-Games-Launcher / HeroicGamesLauncher

A games launcher for GOG, Amazon and Epic Games for Linux, Windows and macOS.
https://heroicgameslauncher.com
GNU General Public License v3.0
8.24k stars 430 forks source link

Launched game doesn't operate inside wineprefix on Flatpak version of Heroic. #1943

Open DeaTh-G opened 2 years ago

DeaTh-G commented 2 years ago

Describe the bug

Launching Sonic Colors: Ultimate from the Flatpak version of Heroic makes the game try to operate on normal linux paths as opposed to inside the prefix. This issues is NOT a game issue considering the game boots just fine from the AppImage download.

The following messages are printed on the game's console:

AppImage
[296:300:20221025,230423.574:ERROR crash_report_database_win.cc:609] CreateDirectory C:\users\steamuser\AppData/Roaming\Sonic Colors\crashpad: Path not found. (3)
Flatpak
[332:336:20221025,230743.017:ERROR crash_report_database_win.cc:609] CreateDirectory /home/deck/.var/app/com.heroicgameslauncher.hgl/data/Sonic Colors\crashpad: Path not found. (3)

Albeit the game printing the error it still boots just fine on the AppImage version, with the same Proton and WinePrefix settings thus it can't be an issue on that end. The crashpad stuff is not required for the game's launch, but the fact it's trying to create a folder with a linux path on Flatpak version makes be believe the Flatpak version isn't launching the game correctly and that's why it gets stuck on a black screen with a cursor.

Add logs

Heroic v2.4.3 [Flatpak] heroic-2022-10-25T21_21_17.782Z.log

Heroic v2.4.3 [AppImage] heroic-2022-10-25T21_24_26.010Z.log

Steps to reproduce

  1. Download latest Heroic version for both the Flatpak and the AppImage.
  2. Download a game with issues on solely the Flatpak version (in this case Sonic Colors: Ultimate).
  3. Setup both Heroic versions to point to the game and its prefix.
  4. Launch the game from both Heroic versions separately to see it not boot properly on Flatpak version.

Expected behavior

The launched titles should work inside the prefixes on the Flatpak version of Heroic not just the AppImage version.

Screenshots

Behaviour under Heroic v2.4.3 [Flatpak] Screenshot_20221025_232241

Behaviour under Heroic v2.4.3 [AppImage] Screenshot_20221025_232847

System Information

Additional information

Please make sure to NOT treat this as a game issue as it works fine on one version of Heroic.

flavioislima commented 2 years ago

Can you try to reproduce this on Heroic beta?

DeaTh-G commented 2 years ago

I'm not sure how I would get the beta version through Discover to use it through flatpak's sandboxed environment on the deck. I could get the beta package from AUR but it wouldn't operate inside a sandbox like with flatpak and it wouldn't provide any useful information due to that.

flavioislima commented 2 years ago

Can you guys test on latest beta 2?

DeaTh-G commented 2 years ago

I still don't know how you would do that through flatpak.

Nocccer commented 2 years ago

I still don't know how you would do that through flatpak.

Change discover source to beta.

DeaTh-G commented 2 years ago

Change discover source to beta.

Thank you, got that working.

Can you guys test on latest beta 2?

Behaviour stayed the same even on 2.5.0-beta2

pyros777 commented 1 year ago

Confirmed still cannot launch this title via flatpak on 2.5.2 beta 2.

xenrohachi commented 9 months ago

Issue still present as of today as well. Works in Appimage but not flatpak