Add native portal lockdown policy and serialize configuration writes
This commit is contained in:
1 parent
09a8cd346a
commit
e71cd88ff8
8 files changed
+318
-4
No files matched your search
@@ -580,6 +580,9 @@ fn prepare_wallpaper(input: &Path, cancel: &Cancel) -> Result<tempfile::NamedTem
|
||||
}
|
||||
|
||||
fn update_wallpaper(image: &Path, target: &str) -> Result<(), String> {
|
||||
let _transaction = crate::backend::CONFIG_TRANSACTION
|
||||
.lock()
|
||||
.map_err(|_| "Configuration transaction failed")?;
|
||||
let path = ferese_config::config_path().ok_or("Missing config path")?;
|
||||
edit_wallpaper(&path, image, target)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user