Skip to content

Detect which desktop environment is run in the current session

License

Notifications You must be signed in to change notification settings

t1st3/desktop-env

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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