10 lines
255 B
Rust
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");
|
|
} |