Restore explicitly approved ScreenCast display permissions
This commit is contained in:
1 parent
da1428dd00
commit
56a888adb3
11 files changed
+882
-52
No files matched your search
+7
-1
@@ -8,6 +8,7 @@ mod lockdown;
|
||||
mod parent;
|
||||
mod permissions;
|
||||
mod picker;
|
||||
mod restore;
|
||||
mod settings;
|
||||
mod shortcuts;
|
||||
mod stream;
|
||||
@@ -17,8 +18,13 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
|
||||
match args.as_slice() {
|
||||
[flag, name, cursor] if flag == "--stream" => {
|
||||
stream::run(name.clone(), cursor == "embedded")
|
||||
stream::run(name.clone(), cursor == "embedded", None)
|
||||
}
|
||||
[flag, name, cursor, generation] if flag == "--stream" => stream::run(
|
||||
name.clone(),
|
||||
cursor == "embedded",
|
||||
Some(generation.parse()?),
|
||||
),
|
||||
[flag] if flag == "--sources" => {
|
||||
let capture = capture::Capture::connect(&std::sync::atomic::AtomicBool::new(false))?;
|
||||
println!("{}", serde_json::to_string(&capture.sources())?);
|
||||
|
||||
Reference in new issue
Block a user