Skip to content

Is there any way to use mangohud globally for OpenGL applications?

My .bash_profile looks like this:

#
# ~/.bash_profile
#

[[ -f ~/.bashrc ]] && . ~/.bashrc

export LD_PRELOAD=/usr/lib/libMangoHud.so:/usr/lib32/libMangoHud.so
export MANGOHUD_DLSYM=1
export MANGOHUD=1
export CLUTTER_BACKEND=wayland
export GTK_USE_PORTAL=1

and mangohud works for all Vulkan games globally,but not for OpenGL games globally. Even when I put it in .profile,then it still doesn't work. It is frustrating that I can't get that to work globally for OpenGL,this even works on windows. So is there a way to make it work? I am on Kde Wayland.

2 points7 comments
Open on Reddit
About this post
Posted
Archived
Score
2 · 63% up
Kind
Text
ID
o0ield

Author

100
posts
42
comments
6
media
View profile

8 comments

Protip: don't do this is you have a compositor. It will fail to launch.

You are better off adding the mangohud --dlsym to any shortcuts/launch parameters for all the games you play.

1 points
unknown author4 hidden

But it is annoying to add mangohud --dlsym per application. I hate it that I can't use a feature that I can use on windows,there must be a way to do that.

0 points

The only reason you can do this on windows is because the drivers have a list of the most common games integrated.

Technically this is still "per-application" but someone else did the "per-application" part.

2 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.