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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user