xfconf 0.1.0

Provides access to xfconf, Xfce's desktop configuration system
docs.rs failed to build xfconf-0.1.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.

xfconf

This crate is a safe API wrapper around libxfconf, a library that can talk to Xfce's configuration system.

How to use

Add to your project's Cargo.toml:

[dependencies]
xfconf = "0.1"

The default feature-set of the crate will enable APIs available through 4.20.x. If you'd like to use APIs only available in newer versions of libxfconf, see the [features] section of Cargo.toml for version-based features you can enable. For example, to enable new APIs present through version 4.21.2, you would instead specify:

[dependencies]
xfconf = { version = "0.1", features = ["v4_21_2"] }

Example code:

use xfconf::ChannelExtManual;

xfconf::init().expect("Failed to initialize xfconf");
let channel = xfconf::Channel::get("xfwm4");
let value = channel.get_property::<String>("/general/title_font")
    .unwrap_or_else(|| "Comic Sans 11".to_owned());
println!("title_font: {}", value);
unsafe { xfconf::shutdown() };