Fixed terminal bug. Fixed tests which could leave the system without proper accessibility setup which could cause cthulhu to fail to start.

This commit is contained in:
Storm Dragon committed 2026-10-18 19:18:57 -04:00
1 parent 9e0ff41b16
commit d717b93849
30 files changed
+611 -22

No files matched your search

+2 -1
View File
@@ -12,6 +12,7 @@ import time
sys.dont_write_bytecode = True
from native_echo_preview import PreviewSpeechServer
from native_x11 import wait_for
from native_test_session import run_private_session
def run_inside():
@@ -175,7 +176,7 @@ def main():
environment = dict(os.environ, DISPLAY=":" + number, XDG_SESSION_TYPE="x11")
for name in ("DBUS_SESSION_BUS_ADDRESS", "AT_SPI_BUS_ADDRESS", "WAYLAND_DISPLAY"):
environment.pop(name, None)
subprocess.run(["dbus-run-session", "--", sys.executable, str(Path(__file__).resolve()), "--inside"],
run_private_session(["dbus-run-session", "--", sys.executable, str(Path(__file__).resolve()), "--inside"],
env=environment, check=True, timeout=120)
finally:
display.terminate()