this post was submitted on 28 Feb 2024
13 points (100.0% liked)

Linux Gaming

15037 readers
263 users here now

Discussions and news about gaming on the GNU/Linux family of operating systems (including the Steam Deck). Potentially a $HOME away from home for disgruntled /r/linux_gaming denizens of the redditarian demesne.

This page can be subscribed to via RSS.

Original /r/linux_gaming pengwing by uoou.

Resources

WWW:

Discord:

IRC:

Matrix:

Telegram:

founded 1 year ago
MODERATORS
 

Like the title says I am trying to understand how these things should work together. Part of my issue is I don't have a good mental model on the Flatpak permissioning / sandbox model. My use case is running a game on Lutris, which is a Flatpack, and using my package install of Mangohud. I am also curious if I should using a Flatpak version of Mangohud instead of the package installed version, and understanding how I would set up Steam as a Flatpak in the future when I switch away from the packaged version.

Thanks for any helpful tips or links you can provide.

top 8 comments
sorted by: hot top controversial new old
[–] INeedMana@lemmy.world 6 points 7 months ago

I don't use flatpak but I didn't have to configure Lutris or Steam in any way for that.

If you look around goverlay you'll find that there are two ENVs that you can set up in X/wayland service to have MangoHud automatically in every context it can render in.

So first try running with MANGOHUD=1 env exported. If that doesn't help, try mangohud steam.
If I understand correctly, flatpack run in some kind of container, so it's possible that you might need to set the env or the command, so it happens inside the container

[–] Chewy7324@discuss.tchncs.de 2 points 7 months ago* (last edited 7 months ago) (2 children)

Flatpak apps don't have access to your system packages, so you need to install mangohud as flatpak. Once it's installed it's available to Steam flatpak and can be enabled like system mangohud in system Steam.

https://github.com/flightlessmango/MangoHud?tab=readme-ov-file#flatpak

Edit: Switching from system Steam to flatpak Steam is simple and it's always possible to switch between them. Just make sure to give flatpak Steam access to the existing SteamLibrary through flatseal.

Personally I have my SteamLibrary at ~/Games/SteamLibrary and give flatpak Lutris/Steam access to ~/Games.

[–] million@lemmy.world 1 points 7 months ago* (last edited 7 months ago)

Yeah chalk this up to me needing to read that manual.

I took the instructions there and replaced the Steam flatpak with Lutris and it worked - though Mangohud is not reading my existing config even though it has access according to Flatseal.

It’s weird to me that Flatpaks cans interact with other Flatpaks but not system packages. I would assume sandboxing would prevent both of those cases.

[–] Fisch@lemmy.ml 1 points 7 months ago (1 children)

Wait, you can change the location of the Steam library?

[–] Chewy7324@discuss.tchncs.de 3 points 7 months ago

It's possible to have Steam libraries at multiple locations.

[–] warmaster@lemmy.world 1 points 7 months ago (1 children)

I tried so hard to use the Steam Flatpak, but hit a wall when I wanted game libraries on multiple drives. The Arch wiki recommended to use the native binary.

[–] Willdrick@lemmy.world 1 points 6 months ago

The easiest way is going to Flatseal, selecting steam and under the folders section add the paths to your libraries.

[–] Mango@lemmy.world 1 points 7 months ago

I too want a HUD.