Since GOverlay was removed from Bazzite, how do you enable Mangohud to work globally for Steam?

Is there a way to enable MangoHud for Steam instead of enabling it for every game I play?
Solution:
That explains it then. Native openGL games need per-game settings: mangohud --dlsym %command% The environment variable for that was once provided, but it hasn’t worked in a long time...
Jump to solution
17 Replies
termdisc
termdisc7mo ago
in ~/.bashrc add
export MANGOHUD=1
export MANGOHUD_DLSYM=1
export MANGOHUD=1
export MANGOHUD_DLSYM=1
then either run source ~/.bashrc, restart Steam or restart the PC entirely
Ravenesque
RavenesqueOP7mo ago
I've never used that file before, just to confirm, is it in the /home/username folder? I also saw you can edit the bash_profile as well, does it matter which is used? @termdisc (Deck+PC)
No description
missalexis
missalexis7mo ago
Yes it's the user home folder. Use .bashrc. "The main difference lies in when each file is executed. The bashrc file is executed for non-interactive, command-line shell sessions, while the bash_profile file is executed for login shell sessions, such as when you log into your system or remotely via SSH."
Ravenesque
RavenesqueOP7mo ago
Thanks. Do you know where in the file I place those entries exactly?
.bashrc Source global definitions if [ -f /etc/bashrc ]; then . /etc/bashrc fi User specific environment if ! [[ "$PATH" =~ "$HOME/.local/bin:$HOME/bin:" ]]; then PATH="$HOME/.local/bin:$HOME/bin:$PATH" fi export PATH Uncomment the following line if you don't like systemctl's auto-paging feature: export SYSTEMD_PAGER= User specific aliases and functions if [ -d ~/.bashrc.d ]; then for rc in ~/.bashrc.d/*; do if [ -f "$rc" ]; then . "$rc" fi done fi unset rc
>
termdisc
termdisc7mo ago
anywhere before unset rc is fine
Ravenesque
RavenesqueOP7mo ago
Hmm, I placed it above unset rc and it doesn't seem to work
termdisc
termdisc7mo ago
actually put it after. I misunderstood that function. I thought it closed the entire file but it is for that for loop
Ravenesque
RavenesqueOP7mo ago
doesn't seem to work still
termdisc
termdisc7mo ago
Did you restart? run in a terminal echo $MANGOHUD
Ravenesque
RavenesqueOP7mo ago
is terminal supposed to output a 1? And still nothing
termdisc
termdisc7mo ago
Yes it is What game are you trying to run? Native?
Ravenesque
RavenesqueOP7mo ago
Vampire Survivors. I think it's native? I just clicked install, says it's Verified but it doesn't show that it is running Proton.
Solution
termdisc
termdisc7mo ago
That explains it then. Native openGL games need per-game settings: mangohud --dlsym %command% The environment variable for that was once provided, but it hasn’t worked in a long time
Ravenesque
RavenesqueOP7mo ago
Ahh that makes sense. Thank you!
Kid
Kid7mo ago
This is great, thx! But why does this work? And is there a way to force mangohud on openGL apps? Most of the time (on steam) I just added Proton, even on native games or I just added mangohud %command% or gamemoderun mangohud %command% as launch option. - And is the "old method" with goverlay and global enable really that bad? I just use Goverlay in a Distrobox now as a configurator and I just installed flatpak install mangohud option 2, 3 and 4.
termdisc
termdisc7mo ago
GitHub
GitHub - flightlessmango/MangoHud: A Vulkan and OpenGL overlay for ...
A Vulkan and OpenGL overlay for monitoring FPS, temperatures, CPU/GPU load and more. Discord: https://discordapp.com/invite/Gj5YmBb - flightlessmango/MangoHud
termdisc
termdisc7mo ago
What I said to do is the last sentence in this section Which is likely what goverlay does The MANGOHUD_DLSYM variable used to be on the readme, but it was removed at some point
Want results from more Discord servers?
Add your server