desktop-env

3.0.1 • Public • Published

desktop-env Build Status Travis

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

License

MIT © t1st3

Package Sidebar

Install

npm i desktop-env

Weekly Downloads

9

Version

3.0.1

License

MIT

Unpacked Size

4.85 kB

Total Files

4

Last publish

Collaborators

  • t1st3