Files
obs_fix/src/main.rs
T
2025-01-03 13:47:58 -05:00

10 lines
255 B
Rust

use std::process::Command;
fn main() {
Command::new("/usr/sbin/modprobe")
.arg("v4l2loopback")
.arg("exclusive_caps=1")
.arg("card_label='OBS Virtual Camera'")
.spawn()
.expect("Modprobe command has failed");
}