Allow selection of FreeRDP binary, and remove browser incognito launch
This commit is contained in:
@@ -37,13 +37,35 @@ class ActionDispatcher:
|
||||
print("Error: No supported chromium based browser found in PATH,")
|
||||
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)}")
|
||||
self._run_command(cmd)
|
||||
|
||||
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 = [
|
||||
"xfreerdp",
|
||||
rdp_bin,
|
||||
f"/v:{config['target']}",
|
||||
f"/u:{config['user']}",
|
||||
f"/p:{config['password']}",
|
||||
|
||||
Reference in New Issue
Block a user