# Request: reliable OS detection

**URL:** <https://discuss.kakoune.com/t/request-reliable-os-detection/515>\
**Category:** Recipes & Guides\
**Created:** [May 3, 2019, 2:54pm UTC](https://discuss.kakoune.com/t/request-reliable-os-detection/515 "2019-05-03T14:54:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![robertmeta](https://discuss.kakoune.com/user_avatar/discuss.kakoune.com/robertmeta/32/833_2.png) [@robertmeta](https://discuss.kakoune.com/u/robertmeta)\
**Post date:** [May 3, 2019, 2:54pm UTC](https://discuss.kakoune.com/t/request-reliable-os-detection/515/1 "2019-05-03T14:54:35Z")

</div>

Anyone have a good recipe for detecting all the major OSes that Kakoune could be running on?

---

<div class="post-metadata">

**Author:** ![Screwtapello](https://discuss.kakoune.com/user_avatar/discuss.kakoune.com/screwtapello/32/12_2.png) [@Screwtapello](https://discuss.kakoune.com/u/Screwtapello)\
**Post date:** [May 3, 2019, 3:08pm UTC](https://discuss.kakoune.com/t/request-reliable-os-detection/515/2 "2019-05-03T15:08:30Z")

</div>

Given that Kakoune requires a POSIX environment, does this need to be more complex than `$(uname)`?

---

<div class="post-metadata">

**Author:** ![robertmeta](https://discuss.kakoune.com/user_avatar/discuss.kakoune.com/robertmeta/32/833_2.png) [@robertmeta](https://discuss.kakoune.com/u/robertmeta)\
**Post date:** [May 3, 2019, 3:21pm UTC](https://discuss.kakoune.com/t/request-reliable-os-detection/515/3 "2019-05-03T15:21:42Z")

</div>

Fair point, I guess even WSL should return something sane.
