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
7.92k stars 417 forks source link

Mangohud does not work with dnf or flatpak version on flatpak heroic #3789

Open esanscoopsers opened 3 months ago

esanscoopsers commented 3 months ago

Describe the bug

no matter what I do I get this error when enabling mangohud and running a game "Mangohud is enabled, but mangohud executable could not be found on $PATH"

I have tried to use the dnf version of mangohud and enabled heroic to have access to all my files and folders in flatpak permissions but it doesn't work.

I have tried to use the flatpak version of mangohud as is recommended but it still doesn't work.

I would prefer to use the dnf version of mangohud since that version is what I can use Goverlay with but I will use the flatpak version If I absolutely have to.

Add logs

(14:42:03) INFO:    [Legendary]:        Legendary location: /app/bin/heroic/resources/app.asar.unpacked/build/bin/linux/legendary

(14:42:03) INFO:    [Gog]:              GOGDL location: /app/bin/heroic/resources/app.asar.unpacked/build/bin/linux/gogdl

(14:42:03) INFO:    [Connection]:       Connectivity: check-online

(14:42:03) INFO:    [Connection]:       Pinging external endpoints

(14:42:03) INFO:    [Gog]:              Checking for existing gog manifests

(14:42:03) INFO:    [Backend]:          DRM module staus {

  "oimompecagnajdejgnnjijobebaeigek": {

    "status": "new",

    "title": "Widevine Content Decryption Module",

    "version": "4.10.2710.0"

  }

}

(14:42:03) WARNING: [Backend]:          Failed to register protocol with OS.

(14:42:03) INFO:    [Legendary]:        Running command: LEGENDARY_CONFIG_PATH=/home/ethan/.var/app/com.heroicgameslauncher.hgl/config/heroic/legendaryConfig/legendary /app/bin/heroic/resources/app.asar.unpacked/build/bin/linux/legendary --version

(14:42:03) INFO:    [Gog]:              Running command: GOGDL_CONFIG_PATH=/home/ethan/.var/app/com.heroicgameslauncher.hgl/config/heroic/gogdlConfig /app/bin/heroic/resources/app.asar.unpacked/build/bin/linux/gogdl --auth-config-path /home/ethan/.var/app/com.heroicgameslauncher.hgl/config/heroic/gog_store/auth.json --version

(14:42:03) INFO:    [Nile]:             Running command: NILE_CONFIG_PATH=/home/ethan/.var/app/com.heroicgameslauncher.hgl/config/heroic/nile_config /app/bin/heroic/resources/app.asar.unpacked/build/bin/linux/nile --version

(14:42:03) INFO:    [Connection]:       Connectivity: online

(14:42:03) INFO:    [Gog]:              Running command: GOGDL_CONFIG_PATH=/home/ethan/.var/app/com.heroicgameslauncher.hgl/config/heroic/gogdlConfig /app/bin/heroic/resources/app.asar.unpacked/build/bin/linux/gogdl --auth-config-path /home/ethan/.var/app/com.heroicgameslauncher.hgl/config/heroic/gog_store/auth.json auth

(14:42:03) INFO:    [Backend]:          User Not Found, removing it from Store

(14:42:03) INFO:    [Gog]:              Checking if login is valid

(14:42:03) INFO:    [Gog]:              Running command: GOGDL_CONFIG_PATH=/home/ethan/.var/app/com.heroicgameslauncher.hgl/config/heroic/gogdlConfig /app/bin/heroic/resources/app.asar.unpacked/build/bin/linux/gogdl --auth-config-path /home/ethan/.var/app/com.heroicgameslauncher.hgl/config/heroic/gog_store/auth.json auth

(14:42:03) INFO:    [Frontend]:         Refreshing undefined Library

(14:42:03) WARNING: [Backend]:          refresh not implemented on Sideload Library Manager

(14:42:03) INFO:    [Legendary]:        Refreshing library...

(14:42:03) INFO:    [Gog]:              Running command: GOGDL_CONFIG_PATH=/home/ethan/.var/app/com.heroicgameslauncher.hgl/config/heroic/gogdlConfig /app/bin/heroic/resources/app.asar.unpacked/build/bin/linux/gogdl --auth-config-path /home/ethan/.var/app/com.heroicgameslauncher.hgl/config/heroic/gog_store/auth.json auth

(14:42:03) INFO:    [Backend]:          Frontend Ready

(14:42:04) INFO:    [Backend]:          

System Information:

CPU: 16x AMD Ryzen 7 3700X 8-Core Processor

Memory: 33.57 GB (used: 3.13 GB)

GPUs:

  GPU 0:

    Name: Advanced Micro Devices, Inc. [AMD/ATI] Navi 22 [Radeon RX 6700/6700 XT/6750 XT / 6800M/6850M XT]

    IDs: D=73df V=1002 SD=2331 SV=1458

    Driver: amdgpu

OS: Nobara Linux 39 (KDE Plasma) (linux)

The current system is not a Steam Deck

We are running inside a Flatpak container

Software Versions:

  Heroic: 2.14.1 Flame Emperor Sabo

  Legendary: 0.20.34 Direct Intervention

  gogdl: 1.0.1

  Nile: 1.0.2 Jonathan Joestar

(14:42:04) INFO:    [Backend]:          Checking for current version changelog

(14:42:04) INFO:    [Gog]:              Getting GOG library

(14:42:04) INFO:    [Gog]:              Running command: GOGDL_CONFIG_PATH=/home/ethan/.var/app/com.heroicgameslauncher.hgl/config/heroic/gogdlConfig /app/bin/heroic/resources/app.asar.unpacked/build/bin/linux/gogdl --auth-config-path /home/ethan/.var/app/com.heroicgameslauncher.hgl/config/heroic/gog_store/auth.json auth

(14:42:04) INFO:    [Backend]:          AreWeAntiCheatYet data downloaded

(14:42:04) INFO:    [Gog]:              Saved username to config file

(14:42:05) INFO:    [Backend]:          Launching Cyberpunk 2077 (1423049311)

(14:42:05) INFO:    [Backend]:          Downloading saves for Cyberpunk 2077

(14:42:05) INFO:    [Gog]:              Running command: GOGDL_CONFIG_PATH=/home/ethan/.var/app/com.heroicgameslauncher.hgl/config/heroic/gogdlConfig /app/bin/heroic/resources/app.asar.unpacked/build/bin/linux/gogdl --auth-config-path /home/ethan/.var/app/com.heroicgameslauncher.hgl/config/heroic/gog_store/auth.json auth

(14:42:05) INFO:    [Backend]:          Preventing machine to sleep

(14:42:05) INFO:    [Gog]:              Syncing saves for Cyberpunk 2077

(14:42:05) INFO:    [Gog]:              Syncing saves for Cyberpunk 2077: GOGDL_CONFIG_PATH=/home/ethan/.var/app/com.heroicgameslauncher.hgl/config/heroic/gogdlConfig /app/bin/heroic/resources/app.asar.unpacked/build/bin/linux/gogdl --auth-config-path /home/ethan/.var/app/com.heroicgameslauncher.hgl/config/heroic/gog_store/auth.json save-sync "/home/ethan/Games/Heroic/Prefixes/default/Cyberpunk 2077/pfx/dosdevices/c:/users/steamuser/Saved Games/CD Projekt Red/Cyberpunk 2077" 1423049311 --os windows --ts 1716932399.712368 --name saves --skip-upload

(14:42:05) INFO:    [Gog]:              Saved games data

(14:42:05) WARNING: [Backend]:          listUpdateableGames not implemented on Sideload Library Manager

(14:42:05) INFO:    [Gog]:              Running command: GOGDL_CONFIG_PATH=/home/ethan/.var/app/com.heroicgameslauncher.hgl/config/heroic/gogdlConfig /app/bin/heroic/resources/app.asar.unpacked/build/bin/linux/gogdl --auth-config-path /home/ethan/.var/app/com.heroicgameslauncher.hgl/config/heroic/gog_store/auth.json auth

(14:42:05) WARNING: [Gog]:              Game 1423049311 has pinned version, update check skipped

(14:42:05) INFO:    [Gog]:              Found 0 game(s) to update

(14:42:06) INFO:    [Winetricks]:       Downloading Winetricks

(14:42:08) INFO:    [WineDownloader]:   Updating wine versions info

(14:42:08) INFO:    [WineDownloader]:   Fetching upstream information...

(14:42:08) INFO:    [Backend]:          Starting the Download Queue

(14:42:10) INFO:    [WineDownloader]:   wine versions updated

(14:42:27) INFO:    [Backend]:          Saves for Cyberpunk 2077 downloaded

(14:42:27) INFO:    [Backend]:          Preventing display from sleep

(14:42:27) INFO:    [Backend]:          Checking if wine version exists: Proton - GE-Proton9-5

(14:42:27) INFO:    [Backend]:          Stopping Display Power Saver Blocker

(14:42:27) INFO:    [Backend]:          Uploading saves for Cyberpunk 2077

(14:42:27) INFO:    [Gog]:              Running command: GOGDL_CONFIG_PATH=/home/ethan/.var/app/com.heroicgameslauncher.hgl/config/heroic/gogdlConfig /app/bin/heroic/resources/app.asar.unpacked/build/bin/linux/gogdl --auth-config-path /home/ethan/.var/app/com.heroicgameslauncher.hgl/config/heroic/gog_store/auth.json auth

(14:42:27) INFO:    [Frontend]:         Refreshing gog Library

(14:42:27) INFO:    [Gog]:              Running command: GOGDL_CONFIG_PATH=/home/ethan/.var/app/com.heroicgameslauncher.hgl/config/heroic/gogdlConfig /app/bin/heroic/resources/app.asar.unpacked/build/bin/linux/gogdl --auth-config-path /home/ethan/.var/app/com.heroicgameslauncher.hgl/config/heroic/gog_store/auth.json auth

(14:42:27) INFO:    [Backend]:          Preventing machine to sleep

(14:42:27) INFO:    [Gog]:              Syncing saves for Cyberpunk 2077

(14:42:27) INFO:    [Gog]:              Syncing saves for Cyberpunk 2077: GOGDL_CONFIG_PATH=/home/ethan/.var/app/com.heroicgameslauncher.hgl/config/heroic/gogdlConfig /app/bin/heroic/resources/app.asar.unpacked/build/bin/linux/gogdl --auth-config-path /home/ethan/.var/app/com.heroicgameslauncher.hgl/config/heroic/gog_store/auth.json save-sync "/home/ethan/Games/Heroic/Prefixes/default/Cyberpunk 2077/pfx/dosdevices/c:/users/steamuser/Saved Games/CD Projekt Red/Cyberpunk 2077" 1423049311 --os windows --ts 1716932546.998117 --name saves --skip-download

(14:42:27) INFO:    [Gog]:              Getting GOG library

(14:42:27) INFO:    [Gog]:              Running command: GOGDL_CONFIG_PATH=/home/ethan/.var/app/com.heroicgameslauncher.hgl/config/heroic/gogdlConfig /app/bin/heroic/resources/app.asar.unpacked/build/bin/linux/gogdl --auth-config-path /home/ethan/.var/app/com.heroicgameslauncher.hgl/config/heroic/gog_store/auth.json auth

(14:42:28) INFO:    [Gog]:              Saved games data

(14:42:48) INFO:    [Backend]:          Saves uploaded for Cyberpunk 2077

(14:42:48) INFO:    [Frontend]:         Refreshing gog Library

(14:42:48) INFO:    [Gog]:              Running command: GOGDL_CONFIG_PATH=/home/ethan/.var/app/com.heroicgameslauncher.hgl/config/heroic/gogdlConfig /app/bin/heroic/resources/app.asar.unpacked/build/bin/linux/gogdl --auth-config-path /home/ethan/.var/app/com.heroicgameslauncher.hgl/config/heroic/gog_store/auth.json auth

(14:42:48) INFO:    [Backend]:          Stopping Power Saver Blocker

(14:42:48) INFO:    [Gog]:              Getting GOG library

(14:42:48) INFO:    [Gog]:              Running command: GOGDL_CONFIG_PATH=/home/ethan/.var/app/com.heroicgameslauncher.hgl/config/heroic/gogdlConfig /app/bin/heroic/resources/app.asar.unpacked/build/bin/linux/gogdl --auth-config-path /home/ethan/.var/app/com.heroicgameslauncher.hgl/config/heroic/gog_store/auth.json auth

(14:42:50) INFO:    [Gog]:              Saved games data

(14:44:21) INFO:    [Backend]:          Launching Cyberpunk 2077 (1423049311)

(14:44:21) INFO:    [Backend]:          Downloading saves for Cyberpunk 2077

(14:44:21) INFO:    [Gog]:              Running command: GOGDL_CONFIG_PATH=/home/ethan/.var/app/com.heroicgameslauncher.hgl/config/heroic/gogdlConfig /app/bin/heroic/resources/app.asar.unpacked/build/bin/linux/gogdl --auth-config-path /home/ethan/.var/app/com.heroicgameslauncher.hgl/config/heroic/gog_store/auth.json auth

(14:44:21) INFO:    [Gog]:              Syncing saves for Cyberpunk 2077

(14:44:21) INFO:    [Gog]:              Syncing saves for Cyberpunk 2077: GOGDL_CONFIG_PATH=/home/ethan/.var/app/com.heroicgameslauncher.hgl/config/heroic/gogdlConfig /app/bin/heroic/resources/app.asar.unpacked/build/bin/linux/gogdl --auth-config-path /home/ethan/.var/app/com.heroicgameslauncher.hgl/config/heroic/gog_store/auth.json save-sync "/home/ethan/Games/Heroic/Prefixes/default/Cyberpunk 2077/pfx/dosdevices/c:/users/steamuser/Saved Games/CD Projekt Red/Cyberpunk 2077" 1423049311 --os windows --ts 1716932568.751213 --name saves --skip-upload

(14:44:42) INFO:    [Backend]:          Saves for Cyberpunk 2077 downloaded

(14:44:42) INFO:    [Backend]:          Checking if wine version exists: Proton - GE-Proton9-5

(14:44:42) INFO:    [Backend]:          Stopping Display Power Saver Blocker

(14:44:42) INFO:    [Backend]:          Uploading saves for Cyberpunk 2077

(14:44:42) INFO:    [Gog]:              Running command: GOGDL_CONFIG_PATH=/home/ethan/.var/app/com.heroicgameslauncher.hgl/config/heroic/gogdlConfig /app/bin/heroic/resources/app.asar.unpacked/build/bin/linux/gogdl --auth-config-path /home/ethan/.var/app/com.heroicgameslauncher.hgl/config/heroic/gog_store/auth.json auth

(14:44:42) INFO:    [Frontend]:         Refreshing gog Library

(14:44:42) INFO:    [Gog]:              Running command: GOGDL_CONFIG_PATH=/home/ethan/.var/app/com.heroicgameslauncher.hgl/config/heroic/gogdlConfig /app/bin/heroic/resources/app.asar.unpacked/build/bin/linux/gogdl --auth-config-path /home/ethan/.var/app/com.heroicgameslauncher.hgl/config/heroic/gog_store/auth.json auth

(14:44:42) INFO:    [Backend]:          Stopping Power Saver Blocker

(14:44:42) INFO:    [Gog]:              Syncing saves for Cyberpunk 2077

(14:44:42) INFO:    [Gog]:              Syncing saves for Cyberpunk 2077: GOGDL_CONFIG_PATH=/home/ethan/.var/app/com.heroicgameslauncher.hgl/config/heroic/gogdlConfig /app/bin/heroic/resources/app.asar.unpacked/build/bin/linux/gogdl --auth-config-path /home/ethan/.var/app/com.heroicgameslauncher.hgl/config/heroic/gog_store/auth.json save-sync "/home/ethan/Games/Heroic/Prefixes/default/Cyberpunk 2077/pfx/dosdevices/c:/users/steamuser/Saved Games/CD Projekt Red/Cyberpunk 2077" 1423049311 --os windows --ts 1716932682.418971 --name saves --skip-download

(14:44:42) INFO:    [Gog]:              Getting GOG library

(14:44:42) INFO:    [Gog]:              Running command: GOGDL_CONFIG_PATH=/home/ethan/.var/app/com.heroicgameslauncher.hgl/config/heroic/gogdlConfig /app/bin/heroic/resources/app.asar.unpacked/build/bin/linux/gogdl --auth-config-path /home/ethan/.var/app/com.heroicgameslauncher.hgl/config/heroic/gog_store/auth.json auth

(14:44:43) INFO:    [Gog]:              Saved games data

(14:45:03) INFO:    [Backend]:          Saves uploaded for Cyberpunk 2077

(14:45:03) INFO:    [Frontend]:         Refreshing gog Library

(14:45:03) INFO:    [Gog]:              Running command: GOGDL_CONFIG_PATH=/home/ethan/.var/app/com.heroicgameslauncher.hgl/config/heroic/gogdlConfig /app/bin/heroic/resources/app.asar.unpacked/build/bin/linux/gogdl --auth-config-path /home/ethan/.var/app/com.heroicgameslauncher.hgl/config/heroic/gog_store/auth.json auth

(14:45:03) INFO:    [Backend]:          Stopping Power Saver Blocker

(14:45:04) INFO:    [Gog]:              Getting GOG library

(14:45:04) INFO:    [Gog]:              Running command: GOGDL_CONFIG_PATH=/home/ethan/.var/app/com.heroicgameslauncher.hgl/config/heroic/gogdlConfig /app/bin/heroic/resources/app.asar.unpacked/build/bin/linux/gogdl --auth-config-path /home/ethan/.var/app/com.heroicgameslauncher.hgl/config/heroic/gog_store/auth.json auth

(14:45:05) INFO:    [Gog]:              Saved games data

Steps to reproduce

  1. enable mangohud
  2. start a game
  3. suffer

Expected behavior

I enable manuhud, and it detects my mangohud installation

Screenshots

No response

Heroic Version

Latest Stable (Flatpak)

System Information

Nobara 39

Additional information

No response

learning-thing commented 3 months ago

Got the same problem, there should be an option to select a path for mangohud or something similar.

Etaash-mathamsetty commented 3 months ago

what is the output of which mangohud

learning-thing commented 3 months ago

what is the output of which mangohud

❯ which mangohud
/usr/bin/mangohud

(just in case) ❯ whereis mangohud
mangohud: /usr/bin/mangohud /usr/lib/mangohud /usr/share/man/man1/mangohud.1.gz

I'm not very fimiliar with how exactly flatpak sandboxing works, could someone explain to me how I could run commands from within a runtime/sandbox?

arielj commented 3 months ago

I'm not very fimiliar with how exactly flatpak sandboxing works, could someone explain to me how I could run commands from within a runtime/sandbox?

flatpak run --command=bash com.heroicgameslauncher.hgl
which mangohud
learning-thing commented 3 months ago

I'm not very fimiliar with how exactly flatpak sandboxing works, could someone explain to me how I could run commands from within a runtime/sandbox?

flatpak run --command=bash com.heroicgameslauncher.hgl
which mangohud

Thank you!

F: Not sharing "/usr/bin" with sandbox: Path "/usr" is reserved by Flatpak
[📦 com.heroicgameslauncher.hgl ~]$ 
[📦 com.heroicgameslauncher.hgl ~]$ which mangohud
which: no mangohud in (/app/bin:/app/utils/bin:/usr/bin:/usr/lib/extensions/vulkan/MangoHud/bin:/usr/lib/extensions/vulkan/gamescope/bin:/usr/lib/extensions/vulkan/OBSVkCapture/bin:/app/bin/heroic/resources/app.asar.unpacked/build/bin/linux)

However:

[📦 com.heroicgameslauncher.hgl ~]$ /run/host/usr/bin/mangohud
ERROR: No program supplied

Usage: mangohud <program>

Mangohud is accessible from within the sandbox at /run/host/usr/bin/mangohud (I might have added the directory myself and forgot about it thogh)

So if I:

$ export PATH=/home/dave/work:$PATH
$ heroic-run

I can run it with mangohud, or so I thought, but I can't see mangohud.. it's probably missing configs?