Commit f6473b4
fix(rdp): fix broken success-path handling, add cert trust, real home dir, wire up multimon
- RdpEmbedWidget._avvia_rdp: the post-launch bookkeeping (start
timestamp, PID log, wiring the process stdout to the log view) was
misplaced inside an except block that only runs on Popen failure,
followed by a second, unreachable except clause. On every normal
(successful) internal RDP connection this meant _t_avvio stayed
None forever, so _monitor_proc() could never tell a fast connection
failure from a normal session end, and the live xfreerdp output was
never shown in the log view. Moved the bookkeeping to run after a
successful launch and merged the two excepts into one.
- xfreerdp/xfreerdp3 command builders (session_command.py preview,
rdp_widget.py external and embedded paths) now add /cert:tofu.
Previously no /cert: option was set, so a first connection to a host
with a self-signed/untrusted certificate (the norm for most RDP
hosts) could consume the piped stdin meant for the password on the
certificate prompt instead, breaking auth.
- Drive redirection now shares the real user home (os.path.expanduser)
instead of the hardcoded "/home" (which exposes every local user's
home directory on the share, not just the current user's).
- rdp_monitor_mode/rdp_monitor_ids were only honored by the read-only
command preview shown in the session editor; the two builders that
actually launch xfreerdp never read them, so multi-monitor selection
silently did nothing. Both now apply /multimon or /monitors:<ids>.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>1 parent 7eae2c1 commit f6473b4
3 files changed
Lines changed: 72 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
| 183 | + | |
| 184 | + | |
183 | 185 | | |
184 | 186 | | |
185 | 187 | | |
| |||
205 | 207 | | |
206 | 208 | | |
207 | 209 | | |
208 | | - | |
| 210 | + | |
209 | 211 | | |
210 | 212 | | |
211 | 213 | | |
| |||
216 | 218 | | |
217 | 219 | | |
218 | 220 | | |
219 | | - | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
220 | 226 | | |
221 | 227 | | |
222 | 228 | | |
| |||
254 | 260 | | |
255 | 261 | | |
256 | 262 | | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | | - | |
263 | | - | |
264 | | - | |
265 | | - | |
266 | | - | |
267 | 263 | | |
268 | 264 | | |
269 | 265 | | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
270 | 276 | | |
271 | 277 | | |
272 | 278 | | |
| |||
658 | 664 | | |
659 | 665 | | |
660 | 666 | | |
| 667 | + | |
| 668 | + | |
661 | 669 | | |
662 | 670 | | |
663 | 671 | | |
| |||
670 | 678 | | |
671 | 679 | | |
672 | 680 | | |
673 | | - | |
| 681 | + | |
674 | 682 | | |
675 | 683 | | |
676 | 684 | | |
| |||
680 | 688 | | |
681 | 689 | | |
682 | 690 | | |
683 | | - | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
684 | 696 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
324 | 324 | | |
325 | 325 | | |
326 | 326 | | |
327 | | - | |
| 327 | + | |
328 | 328 | | |
329 | | - | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
330 | 332 | | |
331 | 333 | | |
332 | 334 | | |
333 | | - | |
| 335 | + | |
334 | 336 | | |
335 | 337 | | |
336 | 338 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
0 commit comments