nowrep / obs-vkcapture

OBS Linux Vulkan/OpenGL game capture
GNU General Public License v2.0
502 stars 24 forks source link

Does an environment variable exist for obs-gamecapture? #208

Closed ExecratedEdits closed 3 months ago

ExecratedEdits commented 3 months ago

Similar to OBS_VKCAPTURE=1 for substituting obs-vkcapture %command%, I was looking for a way to apply obs-gamecapture %command% for all Steam games (flatpak version) without manual entry but couldn't find an equivalent in the documentation.

nowrep commented 3 months ago

You can check what the obs-gamecapture script does. For OpenGL it uses LD_PRELOAD, but I don't recommend setting it system-wide as it would be loaded into all processes (not just those using OpenGL).

ExecratedEdits commented 3 months ago

Understood, thanks for clarifying.