diff --git a/app/src/main/java/com/termux/app/TermuxApplication.java b/app/src/main/java/com/termux/app/TermuxApplication.java index 1123abf6..a3be6121 100644 --- a/app/src/main/java/com/termux/app/TermuxApplication.java +++ b/app/src/main/java/com/termux/app/TermuxApplication.java @@ -52,7 +52,7 @@ public class TermuxApplication extends Application { boolean isTermuxFilesDirectoryAccessible = error == null; if (isTermuxFilesDirectoryAccessible) { Logger.logInfo(LOG_TAG, "Termux files directory is accessible"); - + /* error = TermuxFileUtils.isAppsTermuxAppDirectoryAccessible(true, true); if (error != null) { Logger.logErrorExtended(LOG_TAG, "Create apps/termux-app directory failed\n" + error); @@ -61,6 +61,7 @@ public class TermuxApplication extends Application { // Setup termux-am-socket server TermuxAmSocketServer.setupTermuxAmSocketServer(context); + */ } else { Logger.logErrorExtended(LOG_TAG, "Termux files directory is not accessible\n" + error); } diff --git a/termux-shared/src/main/java/com/termux/shared/termux/shell/command/environment/TermuxAppShellEnvironment.java b/termux-shared/src/main/java/com/termux/shared/termux/shell/command/environment/TermuxAppShellEnvironment.java index abd11f65..17c4436f 100644 --- a/termux-shared/src/main/java/com/termux/shared/termux/shell/command/environment/TermuxAppShellEnvironment.java +++ b/termux-shared/src/main/java/com/termux/shared/termux/shell/command/environment/TermuxAppShellEnvironment.java @@ -128,9 +128,11 @@ public class TermuxAppShellEnvironment { if (TermuxBootstrap.TERMUX_APP_PACKAGE_VARIANT != null) environment.put(ENV_TERMUX_APP__PACKAGE_VARIANT, TermuxBootstrap.TERMUX_APP_PACKAGE_VARIANT.getName()); + /* // Will not be set for plugins ShellEnvironmentUtils.putToEnvIfSet(environment, ENV_TERMUX_APP__AM_SOCKET_SERVER_ENABLED, TermuxAmSocketServer.getTermuxAppAMSocketServerEnabled(currentPackageContext)); + */ String filesDirPath = currentPackageContext.getFilesDir().getAbsolutePath(); ShellEnvironmentUtils.putToEnvIfSet(environment, ENV_TERMUX_APP__FILES_DIR, filesDirPath);