Closed natebragg closed 1 month ago
aterm will not get DISPLAY
in the case if it is a separate command outside of -xstartup
argument. You should export it manually.
Noted. In the meantime I actually realized this was user error --- it was crashing during .bashrc
due to a missing setting in .tmux.conf
. I was not getting an error, however. When I reproduce this error manually, #?
= 1, but when termux-x11
stops it prints 12345 exited, status=0
, which implied to me that aterm
was actually exiting successfully without an error. Is this "swallowing" the error expected behavior? Why even print a status code if so?
It prints exit status code of aterm, not of a shell aterm starts.
Ah, that makes sense! Thanks for your explanation. Well, my mistake aside, I'll have to blame aterm
then since it's sort of weird for them to swallow that error. You'd think the shell crashing would cause aterm to exit with an error.
Problem description
When running:
The
aterm
white rectangular window border appears in the X11 session, and then disappears immediately. This does not occur on another device that I tested.When running using
strace
, the following line appears:This does not appear on the other device. Give that it's a
read
, I'm not sure what is happening, butaterm
exits almost immediately after this line is outputted.What steps will reproduce the bug?
Using a pixel 8 as in the system information below, open a termux shell and the termux-x11 app, and put them in split-screen mode. Then run:
You will see the white border appear, then disappear a fraction of a second later.
What is the expected behavior?
The
aterm
window should remain on the screen, and the shell should start.System information