flathub / org.freedesktop.Platform.VulkanLayer.MangoHud

https://flathub.org/apps/details/org.freedesktop.Platform.VulkanLayer.MangoHud
20 stars 7 forks source link

Flatpak Steam games report "glxinfo: command not found" (several times) when run with MANGOHUD=1 #2

Open Mershl opened 3 years ago

Mershl commented 3 years ago

Log entries usually look like:

MANGOHUD: recreating font image
sh: line 1: glxinfo: command not found

No functional issue found yet.

Reproduced with Circuit Superstars. Launch parameters: MANGOHUD=1 %command%

gasinvein commented 3 years ago

Note that the com.valvesoftware.Steam.Utility.MangoHud extension is obsolete, use the new runtime-wide one instead (org.freedesktop.Platform.VulkanLayer.MangoHud//21.08).

The issue applies to the new one as well, though.

Mershl commented 3 years ago

Side question: Should users pick runtime/org.freedesktop.Platform.VulkanLayer.MangoHud/x86_64/stable over runtime/org.freedesktop.Platform.VulkanLayer.MangoHud/x86_64/21.08?

EDIT: Can't get them to work with latest Steam flatpak (flatpak 1.12.1, using sub-sandboxing instead of Proton Community build). Is this a known issue or am I not seeing something?

pressure-vessel-wrap[2408]: W: Using experimental Flatpak sub-sandboxing (requires Flatpak 1.11.x commit 1.10.1-80-gcb47d83b or later)
GameAction [AppID 1097130, ActionID 2] : LaunchApp changed task to Completed with ""
esync: up and running.
Game process updated : AppID 1097130 "MANGOHUD=1 /var/home/mershl/.var/app/com.valvesoftware.Steam/.local/share/Steam/ubuntu12_32/reaper SteamLaunch AppId=1097130 -- '/var/home/mershl/.var/app/com.valvesoftware.Steam/.local/share/Steam/steamapps/common/SteamLinuxRuntime_soldier'/_v2-entry-point --verb=waitforexitandrun -- '/var/home/mershl/.var/app/com.valvesoftware.Steam/.local/share/Steam/steamapps/common/Proton 6.3'/proton waitforexitandrun  '/var/home/mershl/.var/app/com.valvesoftware.Steam/.local/share/Steam/steamapps/common/Circuit Superstars/circuit-superstars.exe'", ProcID 2647, IP 0.0.0.0:0
Fossilize INFO: Overriding serialization path: "/var/home/mershl/.var/app/com.valvesoftware.Steam/.local/share/Steam/steamapps/shadercache/1097130/fozpipelinesv6/steamapprun_pipeline_cache".
gasinvein commented 3 years ago

Side question: Should users pick runtime/org.freedesktop.Platform.VulkanLayer.MangoHud/x86_64/stable over runtime/org.freedesktop.Platform.VulkanLayer.MangoHud/x86_64/21.08?

You should install branch matching runtime, i.e. 21.08 currently. The stable branch was published by accident, sadly I can't unpublish it now.

EDIT: Can't get them to work with latest Steam flatpak (flatpak 1.12.1, using sub-sandboxing instead of Proton Community build). Is this a known issue or am I not seeing something?

This is a known issue, yes, it doesn't work with official Proton yet.

guihkx commented 2 years ago

Isn't this a matter of just including glxinfo to /app/bin? Something like the Lutris Flatpak does:

https://github.com/flathub/net.lutris.Lutris/blob/811de1d52ceed71f364814820c060009b7da70e7/net.lutris.Lutris.yml#L414-L432

This is a known issue, yes, it doesn't work with official Proton yet.

By the way, this works for me now with the official Proton Experimental:

Screenshot from 2022-05-14 15-16-08

gasinvein commented 2 years ago

Isn't this a matter of just including glxinfo to /app/bin?

It is, yet this is a runtime extension, we don't have control over /app/bin.

guihkx commented 2 years ago

Ahh yes, I forgot about that

Couldn't we install this in the same location of the mangohud binary? On Steam, at least, calling mangohud %command% to launch a game seems to work.

gasinvein commented 2 years ago

Couldn't we install this in the same location of the mangohud binary? On Steam, at least, calling mangohud %command% to launch a game seems to work.

We'll need to patch the mangohud script to make it work; specifically, add the directory the script's parent directory to PATH. This is relatively simple, but I'd like to avoid maintaining a downstream patch.