{"id":17614589,"url":"https://github.com/t1st3/desktop-env","last_synced_at":"2025-07-09T21:35:30.038Z","repository":{"id":57153910,"uuid":"65922934","full_name":"t1st3/desktop-env","owner":"t1st3","description":"Detect which desktop environment is run in the current session","archived":false,"fork":false,"pushed_at":"2020-06-03T09:21:00.000Z","size":85,"stargazers_count":4,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-06T03:47:05.757Z","etag":null,"topics":["cinnamon","desktop-environment","detect","gnome","javascript","kde","lxde","mate","sugar","unity","xfce"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/t1st3.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-08-17T16:16:10.000Z","updated_at":"2023-09-06T01:56:47.000Z","dependencies_parsed_at":"2022-08-24T10:00:26.356Z","dependency_job_id":null,"html_url":"https://github.com/t1st3/desktop-env","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/t1st3/desktop-env","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/t1st3%2Fdesktop-env","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/t1st3%2Fdesktop-env/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/t1st3%2Fdesktop-env/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/t1st3%2Fdesktop-env/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/t1st3","download_url":"https://codeload.github.com/t1st3/desktop-env/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/t1st3%2Fdesktop-env/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264503948,"owners_count":23618763,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cinnamon","desktop-environment","detect","gnome","javascript","kde","lxde","mate","sugar","unity","xfce"],"created_at":"2024-10-22T18:44:09.407Z","updated_at":"2025-07-09T21:35:30.021Z","avatar_url":"https://github.com/t1st3.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# desktop-env [![Build Status Travis](https://travis-ci.org/t1st3/desktop-env.svg?branch=master)](https://travis-ci.org/t1st3/desktop-env)\n\n\u003e Detect which [desktop environment](https://en.wikipedia.org/wiki/Desktop_environment) is run in the current session \n\n\n## Install\n\n```\n$ npm install --save desktop-env\n```\n\n\n## Usage\n\n```js\nconst desktopEnv = require('desktop-env');\n\ndesktopEnv().then(data =\u003e {\n  console.log(data);\n  //=\u003e Cinnamon, Gnome, KDE, LXDE, Mate, Sugar, Unity, XFCE, N/A\n});\n```\n\n\n## API\n\n### desktopEnv()\n\n\nReturns a `Promise` that resolves one of the following:\n\n* `Cinnamon`\n* `Gnome`\n* `KDE`\n* `LXDE`\n* `Mate`\n* `Sugar`\n* `Unity`\n* `XFCE`\n* `N/A` if none of the above\n\n\n## Related\n\n* [is-cinnamon](https://github.com/t1st3/is-cinnamon) | Check if the current session runs [Cinnamon desktop](https://github.com/linuxmint/Cinnamon).\n* [is-gnome](https://github.com/t1st3/is-gnome) | Check if the current session runs [Gnome desktop](https://www.gnome.org/).\n* [is-kde](https://github.com/t1st3/is-kde) | Check if the current session runs [KDE desktop](https://www.kde.org/).\n* [is-lxde](https://github.com/t1st3/is-lxde) | Check if the current session runs [LXDEdesktop](http://lxde.org/).\n* [is-mate](https://github.com/t1st3/is-mate) | Check if the current session runs [Mate desktop](http://mate-desktop.com/).\n* [is-sugar](https://github.com/t1st3/is-sugar) | Check if the current session runs [Sugar desktop](https://www.sugarlabs.org/).\n* [is-unity](https://github.com/t1st3/is-unity) | Check if the current session runs [Unity desktop](https://unity.ubuntu.com/).\n* [is-xfce](https://github.com/t1st3/is-xfce) | Check if the current session runs [XFCE desktop](https://www.xfce.org/).\n\n\n## License\n\nMIT © [t1st3](https://t1st3.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ft1st3%2Fdesktop-env","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ft1st3%2Fdesktop-env","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ft1st3%2Fdesktop-env/lists"}