AppImageCrafters / AppRun

AppDir runtime components
MIT License
26 stars 10 forks source link

File name relative .env files #27

Closed azubieta closed 3 years ago

azubieta commented 3 years ago

In order to allow a more fine grained control over each binary runtime we need to be able to define '.env' files relative to the file name. Therefore the AppRun will search first for the env file at '.env' and as fallback we will look for the '.env' file.

Having .env files relative to the AppRun allows also to have multiple AppRun in the same bundle. Therefore is required to find a better way of defining the APPDIR variable. As a solution we will introduce a new variable "ORIGIN" which will contain the AppRun path and that can be used in the .env file to define the AppDir root relative to the AppRun location. This also allows to combine multiple AppDir in a single bundle.