Crate detect_desktop_environment
source ·Expand description
Desktop environment detection
This crate implements automatic detection for the current desktop environment.
See DesktopEnvironment
for supported desktop environments.
The environment can be detected using DesktopEnvironment::detect
:
use detect_desktop_environment::DesktopEnvironment;
match DesktopEnvironment::detect() {
Some(de) => println!("detected desktop environment: {de:?}"),
None => println!("failed to detect desktop environment"),
}
Enums§
- Desktop environments supported by
detect-desktop-environment
.