# Is it possible to set environment variable for the AppImage?

**URL:** <https://discourse.appimage.org/t/is-it-possible-to-set-environment-variable-for-the-appimage/2248>\
**Category:** Creating AppImages\
**Created:** [January 29, 2021, 3:26pm UTC](https://discourse.appimage.org/t/is-it-possible-to-set-environment-variable-for-the-appimage/2248 "2021-01-29T15:26:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mbasaglia](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.appimage.org/mbasaglia/32/423_2.png) [@mbasaglia](https://discourse.appimage.org/u/mbasaglia)\
**Post date:** [January 29, 2021, 3:26pm UTC](https://discourse.appimage.org/t/is-it-possible-to-set-environment-variable-for-the-appimage/2248/1 "2021-01-29T15:26:05Z")

</div>

I’m developing an app and creating an AppImage using linuxdeployqt.

My app uses an embedded Python interpreter, which to work properly needs to have PYTHONHOME set in the environment, relative pointing to a path packaged within the AppImage itself.

I was wondering if there’s any way of doing that.

---

<div class="post-metadata">

**Author:** ![probono](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.appimage.org/probono/32/81_2.png) [@probono](https://discourse.appimage.org/u/probono)\
**Post date:** [January 30, 2021, 1:03pm UTC](https://discourse.appimage.org/t/is-it-possible-to-set-environment-variable-for-the-appimage/2248/2 "2021-01-30T13:03:50Z")

</div>

Yes, you can use a custom script as your `AppRun` which can set environment variables as you please.
