Execute commands in native Debian or a Debian proot-distro environment. More...
Public Member Functions | |
| bool | supported (cls) |
| Return whether a usable Debian environment can be reached. | |
| bool | is_proot (self) |
| Return whether Debian is hosted through proot-distro. | |
| list[str] | command (self, Sequence[str] args, *bool shared_tmp=False) |
| Return the host command required to execute args inside Debian. | |
| list[str] | graphical_command (self, Sequence[str] args, *str rendering="auto") |
| Return a command suitable for launching a graphical Debian application. | |
| subprocess.CompletedProcess | run (self, Sequence[str] args, **object kwargs) |
| Execute args in Debian and return the completed process. | |
Protected Member Functions | |
| bool | _ensure_virgl_server (self) |
| Start an available Termux virgl renderer and return success. | |
Static Protected Member Functions | |
| bool | _virgl_socket_accepting (Path socket_path) |
| Return whether a VirGL Unix socket currently accepts connections. | |
Execute commands in native Debian or a Debian proot-distro environment.
|
protected |
Start an available Termux virgl renderer and return success.
virgl_test_server_android is discovered at runtime. If it is not installed on the current Android/Termux device, accelerated bridging is simply unavailable and the caller continues without virpipe settings.
| list[str] games.debian_command_runner.DebianCommandRunner.graphical_command | ( | self, | |
| Sequence[str] | args, | ||
| *str | rendering = "auto" |
||
| ) |
Return a command suitable for launching a graphical Debian application.
Native Debian receives the command unchanged. Under Termux/proot, ORC shares the X11 socket. auto uses an accelerated virpipe bridge only when the required Termux renderer capability is present. software explicitly selects Mesa llvmpipe. The decision is capability based and does not depend on a particular phone model or GPU.