[][src]Module cala::info

Retrieve environment information.

Usage

// Get the user's username.
println!("{}", cala::info::username());

Enums

DesktopEnv

Which Desktop Environment

Platform

Which Platform

Functions

desktop_env

Get the desktop environment.

devicename

Get the device name (also known as "Pretty Name"), used to identify device for bluetooth pairing.

distro

Get the name of the operating system distribution and (possibly) version.

hostname

Get the host device's hostname.

platform

Get the platform.

realname

Get the user's real name.

username

Get the user's username.