wallpaper_rs 0.1.1

Provides an interface for setting and getting desktop wallpaper.
Documentation
1
2
3
4
5
6
7
use wallpaper_rs::{Desktop, DesktopEnvt};

fn main() {
    let d = DesktopEnvt::new().expect("Desktop environment couldn't be determined");
    // This prints Ok(<file path>) on success and Err(<error message>) on failure
    println!("{:?}", d.get_wallpaper());
}