https://github.com/t1st3/is-mate
Check if the current session runs Mate desktop
https://github.com/t1st3/is-mate
desktop-environment detect javascript mate mate-desktop
Last synced: about 1 month ago
JSON representation
Check if the current session runs Mate desktop
- Host: GitHub
- URL: https://github.com/t1st3/is-mate
- Owner: t1st3
- License: mit
- Created: 2016-08-16T21:04:23.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2020-06-03T09:19:59.000Z (almost 5 years ago)
- Last Synced: 2025-03-10T14:43:34.058Z (about 2 months ago)
- Topics: desktop-environment, detect, javascript, mate, mate-desktop
- Language: JavaScript
- Size: 82 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# is-mate [](https://travis-ci.org/t1st3/is-mate)
> Check if the current session runs [Mate desktop](http://mate-desktop.com/).
## Install
```
$ npm install --save is-mate
```## Usage
```js
const isMate = require('is-mate');isMate.then(data => {
console.log(data);
//=> true or false
});
```## API
### isMate()
Returns a `Promise` that resolves either to `true` or `false`.
## Related
* [desktop-env](https://github.com/t1st3/desktop-env) | A desktop environment detector based on this module and the following ones
* [is-cinnamon](https://github.com/t1st3/is-cinnamon) | Check if the current session runs [Cinnamon desktop](https://github.com/linuxmint/Cinnamon).
* [is-gnome](https://github.com/t1st3/is-gnome) | Check if the current session runs [Gnome desktop](https://www.gnome.org/).
* [is-kde](https://github.com/t1st3/is-kde) | Check if the current session runs [KDE desktop](https://www.kde.org/).
* [is-lxde](https://github.com/t1st3/is-lxde) | Check if the current session runs [LXDEdesktop](http://lxde.org/).
* [is-sugar](https://github.com/t1st3/is-sugar) | Check if the current session runs [Sugar desktop](https://www.sugarlabs.org/).
* [is-unity](https://github.com/t1st3/is-unity) | Check if the current session runs [Unity desktop](https://unity.ubuntu.com/).
* [is-xfce](https://github.com/t1st3/is-xfce) | Check if the current session runs [XFCE desktop](https://www.xfce.org/).## License
MIT © [t1st3](https://t1st3.com)