Patched: Disable export of TERMUX_API_APP__* environment variables as app variables will be written to termux-apps-info.env file for the stable v0.119.0 release

Removes `TERMUX_API_APP__APP_VERSION_NAME`.
This commit is contained in:
agnostic-apollo 2024-06-12 05:34:43 +05:00
parent 3f6ebd33cd
commit 3ae0d601db
No known key found for this signature in database
GPG key ID: BCCC0287E9DCCAED

View file

@ -71,9 +71,11 @@ public class TermuxShellEnvironment extends AndroidShellEnvironment {
if (termuxAppEnvironment != null)
environment.putAll(termuxAppEnvironment);
/*
HashMap<String, String> termuxApiAppEnvironment = TermuxAPIShellEnvironment.getEnvironment(currentPackageContext);
if (termuxApiAppEnvironment != null)
environment.putAll(termuxApiAppEnvironment);
*/
environment.put(ENV_HOME, TermuxConstants.TERMUX_HOME_DIR_PATH);
environment.put(ENV_PREFIX, TermuxConstants.TERMUX_PREFIX_DIR_PATH);