mirror of
https://github.com/saphid/frame-control.git
synced 2026-10-06 05:02:50 +02:00
Remote desktop on Windows: say to choose Connect on mstsc's file prompt
Seen on Windows 11: an unsigned .rdp file makes mstsc ask about the publisher before the certificate warning. Plain '>' in the message, which a cp1252 console can print. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
72ffec45c2
commit
3f273ca37a
2 files changed
+4
-2
No files matched your search
+3
-2
@@ -298,7 +298,7 @@ def open_rdp(alias, host=None):
|
||||
# The client would open either way and then fail on its own, with nothing said here.
|
||||
if not rdp_reachable(host):
|
||||
raise HostError(f"The Frame isn't accepting remote desktop at {host} (nothing answered on port "
|
||||
f"{RDP_PORT}). Turn on Developer Mode in Steam Settings → System on the headset, "
|
||||
f"{RDP_PORT}). Turn on Developer Mode in Steam Settings > System on the headset, "
|
||||
"then restart it and try again.")
|
||||
if MAC:
|
||||
if subprocess.run(["open", "-a", "Windows App"], capture_output=True).returncode == 0:
|
||||
@@ -307,7 +307,8 @@ def open_rdp(alias, host=None):
|
||||
return "Windows App isn't installed; opened its App Store page"
|
||||
if WINDOWS:
|
||||
_spawn(["mstsc.exe", str(rdp_file(host))])
|
||||
return f"Opened Remote Desktop to {host}: {RDP_LOGIN}"
|
||||
# Windows asks about the unsigned connection file first.
|
||||
return f"Opened Remote Desktop to {host}: choose Connect, {RDP_LOGIN}"
|
||||
if which("remmina"):
|
||||
_spawn(["remmina", "-c", f"rdp://{RDP_USER}@{host}"])
|
||||
return f"Opened Remmina to {host}: {RDP_LOGIN}"
|
||||
|
||||
Reference in new issue
Block a user