Desktop environment detection module

Desktop environment detection module — detect the current DE based on well-known environment variables

Functions

Types and Values

enum NkXdgDe

Description

Functions

nk_xdg_de_detect ()

NkXdgDe
nk_xdg_de_detect (void);

Checks for well-known environment variables to detect the current desktop environment.

Once checked, the value will not change, so make sure to call this function after any needed environment manipulation.

Returns

an NkXdgDe value corresponding to the current desktop environment

Types and Values

enum NkXdgDe

Members

NK_XDG_DE_NONE

The generic/none DE

 

NK_XDG_DE_GNOME

GNOME

 

NK_XDG_DE_KDE

KDE

 

NK_XDG_DE_I3

i3 window manager