Allow selection of FreeRDP binary, and remove browser incognito launch

This commit is contained in:
2026-08-25 21:55:05 +01:00
parent 75c84bea49
commit 60b51afdb6

View File

@@ -37,13 +37,35 @@ class ActionDispatcher:
print("Error: No supported chromium based browser found in PATH,") print("Error: No supported chromium based browser found in PATH,")
return return
cmd = [browser_bin, f"--app={url}", "--start-maximized", "--incognito"] cmd = [
browser_bin,
f"--app={url}",
"--start-maximized",
"--no-first-run",
"--disable-session-crashed-bubble",
]
print(f"Launching browser command: {' '.join(cmd)}") print(f"Launching browser command: {' '.join(cmd)}")
self._run_command(cmd) self._run_command(cmd)
def _launch_xfreerdp(self, config): def _launch_xfreerdp(self, config):
rdp_candidates = [
"wlfreerdp3",
"xfreerdp3",
"xfreerdp"
]
rdp_bin = None
for candidate in rdp_candidates:
if shutil.which(candidate):
rdp_bin = candidate
break
if not rdp_bin:
print("Error: No supported FreeRDP executable found in PATH,")
return
cmd = [ cmd = [
"xfreerdp", rdp_bin,
f"/v:{config['target']}", f"/v:{config['target']}",
f"/u:{config['user']}", f"/u:{config['user']}",
f"/p:{config['password']}", f"/p:{config['password']}",