Commit 9a9ca98
fix: add Xwayland startup and dynamic DISPLAY detection for GNOME screenshots
- Start Xwayland explicitly on :99 after gnome-shell's wayland-0 is ready
- Add findXwaylandDisplay() to detect X11 sockets dynamically
- Check displays :0, :1, :2, :99 in both XDG_RUNTIME_DIR and /tmp
- Add x11-utils package for xdpyinfo
- Better logging for screenshot fallback debugging
Note: Xwayland+scrot approach has limitations - only captures X11 windows,
not native Wayland apps. May need to switch to PipeWire-based capture
via remotedesktop-session.py for proper GNOME screenshots.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <[email protected]>1 parent 16c6342 commit 9a9ca98
2 files changed
+64
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
289 | 289 | | |
290 | 290 | | |
291 | 291 | | |
292 | | - | |
| 292 | + | |
293 | 293 | | |
294 | 294 | | |
295 | 295 | | |
| |||
519 | 519 | | |
520 | 520 | | |
521 | 521 | | |
522 | | - | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
523 | 540 | | |
524 | 541 | | |
525 | 542 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
476 | 476 | | |
477 | 477 | | |
478 | 478 | | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
479 | 520 | | |
480 | 521 | | |
481 | 522 | | |
482 | 523 | | |
483 | 524 | | |
484 | 525 | | |
485 | 526 | | |
486 | | - | |
487 | | - | |
488 | | - | |
489 | | - | |
490 | | - | |
491 | | - | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
492 | 530 | | |
493 | 531 | | |
494 | 532 | | |
| |||
510 | 548 | | |
511 | 549 | | |
512 | 550 | | |
| 551 | + | |
513 | 552 | | |
514 | 553 | | |
515 | 554 | | |
| |||
0 commit comments