INNER CODE UNIT · Java
main
termux/termux-x11 · lorie/src/main/java/com/termux/x11/CmdEntryPoint.java:44
public static void main(String[] args) {
initEntryPoint();
android.util.Log.i("CmdEntryPoint", "commit " + BuildConfig.COMMIT);
handler.post(() -> new CmdEntryPoint(args));
Looper.loop();
}
CmdEntryPoint(String[] args) {
if (!start(args))
System.exit(1);
}
@SuppressLint({"WrongConstant", "PrivateApi"})
private Intent createIntent() {
// We should not care about multiple instances, it should be called only by `Termux:X11` app
// which is single instance...
Bundle bundle = new Bundle();
bundle.putBinder(null, this);