freedesktop-core 0.0.3

Rust implementations of the freedesktop standards
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use std::env;

pub struct Info;

impl Info {
    pub fn current_desktop() -> Option<String> {
        if let Ok(desktop) = env::var("XDG_CURRENT_DESKTOP") {
            return Some(desktop);
        }

        None
    }
}