Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Work around 'podman exec' resetting the terminal size to 80x24
See: containers/podman#3946 COLUMNS and LINES may not be set in the user's environment. Hence the existing mechanism for preserving environment variables don't work. Note that for things to keep working when invoked via D-Bus from inside a toolbox container, the terminal size needs to be queried using the standard input stream, instead of explicitly mentioning the controlling terminal device /dev/tty. This is because stty(1) doesn't have the notion of a controlling terminal when invoked via D-Bus, but flatpak-spawn(1) ensures that the standard input stream still points to the user's interactive terminal. https://github.com/debarshiray/toolbox/issues/242
- Loading branch information