I’ve installed “Overcooked 2” and “Moving Out” through Heroic Games Launcher (flatpak) and then used the ad-hoc option to add it to steam (also installed as flatpak). If I try to launch the game from Heroic it works properly, and it works also if I try to launch it from the command line with the command it added to steam

flatpak run com.heroicgameslauncher.hgl --no-gui --no-sandbox "heroic://launch/legendary/8e29583ae4b44a21883038668f7e301e"

but if I click the PLAY button on steam, the game fails to launch and the following error is printed on terminal:

chdir "/var/home/lez"
Game Recording - would start recording game 12260096395435835392, but recording for this game is disabled
Adding process 532 for gameID 12260096395435835392
ERROR: ld.so: object '/var/home/lez/.var/app/com.valvesoftware.Steam/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/var/home/lez/.var/app/com.valvesoftware.Steam/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/var/home/lez/.var/app/com.valvesoftware.Steam/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
pid 534 != 532, skipping destruction (fork without exec?)
Game Recording - game stopped [gameid=12260096395435835392]
Removing process 532 for gameID 12260096395435835392

Anyone else faced this issue? If so how did you fixed it?

  • just_another_person@lemmy.world
    link
    fedilink
    English
    arrow-up
    9
    ·
    edit-2
    3 days ago

    Flatpaks are sandboxed by default. I’m betting this is a permissions issue. Install Flatseal and have a look at both the permissions for Heroic perhaps, but if you also have the Steam flatpaks installed, it may be having issues there. I’d search around specifically for flatpaks permissions issues with what you’re trying to do though if you don’t find anything obvious in Flatseal.

    Edit: this may be your issue: https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher/issues/2944#issuecomment-1685259889

    • shaked_coffeeOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      3 days ago

      Unfortunately the issue persists even if I give Heroic access to the all user files (filesystem=home), but maybe the issue is more an issue of Steam rather than of Heroic, since from Heroic I’m able to launch games and even add them to Steam (they actually appear on Steam Library, and manually launching from a terminal the command Heroic automatically added to steam games are launched properly).

      I tried to give Steam flatpak full access to user’s files as well, but after having done that I got an error when launching steam pointing me to this doc page so I think some additional steps would be needed for that change (?)

      • just_another_person@lemmy.world
        link
        fedilink
        English
        arrow-up
        2
        ·
        3 days ago

        So that’s detailing a part of the problem, but as it says, there is no one sure fix because your directories could be setup any number of ways. It’s basically saying Heroic will be called via XDG helpers to try and launch games, but if it’s looking in the wrong directory, you need to point it to the right place.

        From here you need to take the output logging and figure out where exactly it’s looking for the expected launcher, but honestly, I wouldn’t even go that far if Heroic can already launch everything you need. Personally, I would just add Heroic as a non-stean game and launch that to start games from Deck mode. Lot less frustration 😂

    • shaked_coffeeOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      3 days ago

      Because sometimes I have the laptop connected to the TV using Steam’s Big Picture mode with a controller and it would be nice to launch also my Heroic games from there without having to go back to the desktop