Skip to main content

open_settings_camera

Function open_settings_camera 

Source
pub fn open_settings_camera() -> Result<(), String>
Expand description

Shell out to open System Settings → Privacy & Security → Camera. Falls back to a no-op on Linux (no universal Settings deep-link).

§Errors

Returns the OS spawn error as a string if Command::spawn fails (e.g. open not on PATH on macOS — should never happen).