Fix Chromium autofill timing bug + RDP anti-idle to prevent lock screen

- universal-runtime: set _state[profile_dir] AFTER _start_process so
  _stop_current does not delete the freshly-created profile before
  Chromium reads it. Without this, Login Data was being wiped.
- rdp-proxy: add xdotool dependency and background anti_idle_loop that
  sends Shift to the xfreerdp window every 30s, forwarded over RDP to
  reset the remote idle timer and keep the lock screen from kicking in.
This commit is contained in:
2026-04-30 14:05:04 +00:00
parent 23c1f6e342
commit be65be8fdb
3 changed files with 22 additions and 2 deletions
+1 -1
View File
@@ -236,7 +236,6 @@ def open_web(
) -> None:
safe_w, safe_h = apply_resolution(width, height)
profile_dir = _create_chrome_profile(login, password, url)
_state["profile_dir"] = profile_dir
cmd = [
"chromium",
"--no-sandbox",
@@ -261,6 +260,7 @@ def open_web(
url,
]
_start_process(cmd, "web", url)
_state["profile_dir"] = profile_dir
def open_rdp(payload: dict) -> None: