# Reading environment variables

**URL:** <https://forum.legato.io/t/reading-environment-variables/6743>\
**Category:** Uncategorized\
**Created:** [May 22, 2024, 4:42pm UTC](https://forum.legato.io/t/reading-environment-variables/6743 "2024-05-22T16:42:00Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [May 22, 2024, 4:50pm UTC](https://forum.legato.io/t/reading-environment-variables/6743/2 "2024-05-22T16:50:46Z")

</div>

does this help?

> [@Get my app version in c/c++ code](https://forum.legato.io/t/get-my-app-version-in-c-c-code/5117/10):
>
> Actually, there are 2 slightly different cases: Sandboxed application Non-sandboxed application If your application is non-sandboxed, then your original procedure should work, afaik. In case of sandboxed application, for each application there is its own config tree and you should grant your application access to to those trees. version information is located in system tree, so you should grant access to the system tree. requires: { configTree: { [w] . // I need write access to my…

---

_[View the full topic](https://forum.legato.io/t/reading-environment-variables/6743)._
