nowrep / obs-vkcapture

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

Feature request: Possible environment variable to capture? #210

Closed obsgamecapture closed 2 months ago

obsgamecapture commented 2 months ago

So now i can set OBS_VKCAPTURE=1 in Flatseal to any program i want to have Vulkan game capture by default. It captures only Vulkan though and not OpenGL. Could there be improvement to have a environment variable that would set both Vulkan and OpenGL capture to be used?

The command obs-gamecapture is only recognized in Steam and i cannot set it as a command to launch an application in terminal for example.

I have everything installed as Flatpak.

nowrep commented 2 months ago

You can see https://github.com/nowrep/obs-vkcapture/blob/master/src/obs-gamecapture.in how it works, for OpenGL it uses LD_PRELOAD so while you could set it system-wide it would be loaded into every process you run.