tauri-plugin-decoration 2.0.1

Native window controls, custom decorations, and Windows 11 Snap Layout for Tauri v2 apps.
1
2
3
4
5
6
7
8
9
10
11
12
13
use std::process::Command;

pub fn read(path: &str) -> Result<String, ()> {
    if let Ok(output) = Command::new("dconf").args(["read", path]).output() {
        Ok(String::from_utf8_lossy(&output.stdout)
            .to_string()
            .replace('\'', "")
            .replace('"', "")
            .replace('\n', ""))
    } else {
        Err(())
    }
}