desktop-env
v3.0.1
Published
Detect which desktop environment is run in the current session
Downloads
40
Maintainers
Readme
desktop-env
Detect which desktop environment is run in the current session
Install
$ npm install --save desktop-env
Usage
const desktopEnv = require('desktop-env');
desktopEnv().then(data => {
console.log(data);
//=> Cinnamon, Gnome, KDE, LXDE, Mate, Sugar, Unity, XFCE, N/A
});
API
desktopEnv()
Returns a Promise
that resolves one of the following:
Cinnamon
Gnome
KDE
LXDE
Mate
Sugar
Unity
XFCE
N/A
if none of the above
Related
- is-cinnamon | Check if the current session runs Cinnamon desktop.
- is-gnome | Check if the current session runs Gnome desktop.
- is-kde | Check if the current session runs KDE desktop.
- is-lxde | Check if the current session runs LXDEdesktop.
- is-mate | Check if the current session runs Mate desktop.
- is-sugar | Check if the current session runs Sugar desktop.
- is-unity | Check if the current session runs Unity desktop.
- is-xfce | Check if the current session runs XFCE desktop.
License
MIT © t1st3