Added OS environment variable

This commit is contained in:
Dominic Letz 2021-10-11 19:23:02 +02:00
parent 9189245cc5
commit 72f8cf8fea

View file

@ -33,6 +33,7 @@ class Bridge(private val applicationContext : Context, private var webview : Web
private val assets = applicationContext.assets.list("")
init {
Os.setenv("ELIXIR_DESKTOP_OS", "android", false);
Os.setenv("BRIDGE_PORT", server.localPort.toString(), false);
// not really the home directory, but persistent between app upgrades
Os.setenv("HOME", applicationContext.filesDir.absolutePath, false);