How to fix Failed to initialize video in OBS Studio

Just make a launcher and add that laucher to the prohram menu (edit menu).

The launcher (OBS-STUDIO):

#! /bin/sh
LIBGL_ALWAYS_SOFTWARE=1 obs

… and make it executable

chmod +x OBS-STUDIO