AbstractOS

Search documentation

Find a docs page

Developer guideSettings API

Reading system settings

Read appearance, accent and locale settings and react to changes over D-Bus.

System settings are exposed through the org.abstractos.Settings1 D-Bus interface and the standard Settings portal for sandboxed apps.

Keys

KeyTypeExample
appearance.color-schemestring"light"
appearance.accentstring"blue"
display.text-scaledouble1.25
shell.form-factorstring"tablet"
let settings = abstract_kit::Settings::default();
let scheme = settings.string("appearance.color-scheme");
settings.connect_changed(Some("appearance.color-scheme"), |s, key| {
    println!("changed: {}", s.string(key));
});
Last updated Edit this page on GitLab