HGL
frail-apricot

What is meant by We could not found gamescope on the PATH. Install it or add it to the PATH. ?

How do I add gamescope to my PATH? I have it installed on my system (arch), and I have Heroic installed as a Flatpak.
16 Replies
CommandMC
CommandMC11mo ago
Gotta install the Gamescope Flatpak if you're using Flatpak Heroic (yes, that could be communicated better) Either install it from your Software Center of choice, or run the following command to install it:
flatpak install flathub org.freedesktop.Platform.VulkanLayer.gamescope
flatpak install flathub org.freedesktop.Platform.VulkanLayer.gamescope
frail-apricot
frail-apricotOP11mo ago
I installed it through Discover as well, though looking at it now it doesn't seem to be the flatpak version, weird Running the flatpak install command, I get two options:
Similar refs found for ‘org.freedesktop.Platform.VulkanLayer.gamescope’ in remote ‘flathub’ (system):

1) runtime/org.freedesktop.Platform.VulkanLayer.gamescope/x86_64/22.08
2) runtime/org.freedesktop.Platform.VulkanLayer.gamescope/x86_64/23.08

Which do you want to use (0 to abort)? [0-2]:
Similar refs found for ‘org.freedesktop.Platform.VulkanLayer.gamescope’ in remote ‘flathub’ (system):

1) runtime/org.freedesktop.Platform.VulkanLayer.gamescope/x86_64/22.08
2) runtime/org.freedesktop.Platform.VulkanLayer.gamescope/x86_64/23.08

Which do you want to use (0 to abort)? [0-2]:
Which should I select? Or if I run flatpak install gamescope it also gives me the steam version EDIT: On Discover, it does say "Install from Flathub" and it still isn't showing in Heroic :/
CommandMC
CommandMC11mo ago
Any one there is fine
frail-apricot
frail-apricotOP11mo ago
Discover seems to install the steam gamescope flatpak, but it still has the same message that it hasn't found it
CommandMC
CommandMC11mo ago
What's the output of flatpak list --runtime?
frail-apricot
frail-apricotOP11mo ago
https://paste.rs/d4LPY (its too long to paste into discord and writing it to file messed up the formatting)
CommandMC
CommandMC11mo ago
Alright, that looks good Did you restart Heroic after installing the Gamescope Flatpak?
frail-apricot
frail-apricotOP11mo ago
I have but I've reinstalled gamescope via Discover and will restart Heroic in a moment to test
CommandMC
CommandMC11mo ago
Alright, if that's still not working, do send in the output of the following command:
flatpak run --command=ls com.heroicgameslauncher.hgl -l /usr/lib/extensions/vulkan/gamescope/bin
flatpak run --command=ls com.heroicgameslauncher.hgl -l /usr/lib/extensions/vulkan/gamescope/bin
frail-apricot
frail-apricotOP11mo ago
Still no gamescope found :x I do not have a /usr/lib/extensions folder, it seems
CommandMC
CommandMC11mo ago
You are running that exact command, yes? That'll search for that folder in Heroic's sandbox, not on your actual filesystem
frail-apricot
frail-apricotOP11mo ago
$ flatpak run --command=ls com.heroicgameslauncher.hgl -l /usr/lib/extensions/vulkan/gamescope/bin ls: cannot access '/usr/lib/extensions/vulkan/gamescope/bin': No such file or directory
CommandMC
CommandMC11mo ago
Certainly strange. Quoting the project's README:
Here, we include a script that automatically adds the appropriate paths, so all you need to do is add /usr/lib/extensions/vulkan/gamescope/bin to your Flatpak's PATH variable (--env=PATH=$PATH:/usr/lib/extensions/vulkan/gamescope/bin).
- https://github.com/flathub/org.freedesktop.Platform.VulkanLayer.gamescope?tab=readme-ov-file#notes (that PATH variable is set automatically by Heroic, so all you should have to do is installing the package)
jolly-crimson
jolly-crimson11mo ago
not really, it needs to be 23.08 as this is what Heroic's runtime is at
CommandMC
CommandMC11mo ago
Huh, well that'll be it then. They're on 22.08 Apologies, learned something new today
adverse-sapphire
adverse-sapphire5mo ago
Hello, sorry to necro, I have the same problem, I installed gamescope version 24.08 through flatpak, restarted pc, then restarted Heroic, but it still can not detect gamescope. Should I uninstall 24.08 and install 23.08? Also, the path command doesn't work as it says that the directory doesn't exist. EDIT: The solution to this is using Gamescope 23.08, no less, no more, just that.

Did you find this page helpful?