Changed: Moved the am socket to PREFIX/var/run/am-socket

This commit is contained in:
tareksander 2021-12-08 15:34:26 +01:00 committed by agnostic-apollo
parent 3dee2eb486
commit 2851175d8b
1 changed files with 1 additions and 3 deletions

View File

@ -12,8 +12,6 @@ import com.termux.shared.termux.settings.preferences.TermuxAppSharedPreferences;
import com.termux.shared.termux.settings.properties.TermuxAppSharedProperties;
import com.termux.shared.termux.theme.TermuxThemeUtils;
import java.io.File;
public class TermuxApplication extends Application {
public void onCreate() {
@ -42,7 +40,7 @@ public class TermuxApplication extends Application {
} catch (Exception e) {
return 1;
}
}, new File(getFilesDir(), "am-socket").getAbsolutePath(), 100, 1000) == null) {
}, TermuxConstants.TERMUX_VAR_PREFIX_DIR_PATH+"/run/am-socket", 100, 1000) == null) {
Logger.logWarn("TermuxApplication", "am socket cannot be created");
}
}