clone of my dotfiles.ssp.sh
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

switch to xfreerdp

sspaeti b50693dd 03a9a0ab

+7 -5
+7 -5
hypr/.config/hypr/sspaeti/windows-ms/start-windows.sh
··· 5 5 # When RDP closes, docker-compose will also stop 6 6 7 7 SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" &> /dev/null && pwd)" 8 - RDP_COMMAND="rdesktop -g 1600x1000@144 -P -z -x l -r sound:off -u docker 127.0.0.1:3389 -p admin" 8 + # RDP_COMMAND="rdesktop -g 1600x1000@144 -P -z -x l -r sound:off -u docker 127.0.0.1:3389 -p admin" 9 + RDP_COMMAND="xfreerdp3 /u:docker /p:admin /v:127.0.0.1:3389 /size:1600x1000 +f /cert:tofu -grab-keyboard" 9 10 10 11 echo "Starting Windows VM..." 11 12 ··· 67 68 68 69 echo "RDP port is open, testing connection..." 69 70 # Quick RDP test with shorter timeout 70 - timeout 5 rdesktop -g 320x240 -u docker 127.0.0.1:3389 -p admin 2>/dev/null 71 + # timeout 5 rdesktop -g 320x240 -u docker 127.0.0.1:3389 -p admin 2>/dev/null 72 + timeout 15 xfreerdp3 /u:docker /p:admin /v:127.0.0.1:3389 /cert:tofu 2>/dev/null 71 73 if [ $? -ne 0 ]; then 72 74 echo "RDP not fully ready yet, waiting 5 more seconds..." 73 - sleep 5 75 + sleep 15 74 76 fi 75 77 76 78 echo "Starting RDP connection..." 77 79 echo "When you close RDP, the Windows VM will automatically shut down." 78 80 79 - # Start RDP in foreground - when it exits, cleanup will run 80 - $RDP_COMMAND 81 + # Start RDP in new session to isolate from terminal signals (otherwise ctrl+c for copying will stop everything) 82 + setsid $RDP_COMMAND 81 83 82 84 # If RDP exits, cleanup 83 85 cleanup