fix(linux): use actual desktopCapturer source on X11#678
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThis PR contains two independent feature changes: restructured Electron tray context menu with improved recording/non-recording state separation, and reworked Linux display media source resolution with explicit Wayland detection; additionally, internal zoom/pan transition helpers were removed from video playback utilities. ChangesElectron Tray Menu and Linux Display Capture
Video Zoom Region Utilities Cleanup
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Suggested labels
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Description
This PR fixes Linux X11 screen recording startup by resolving the actual screen source from
desktopCapturer.getSources()instead of using the Linux portal sentinel source on X11.It also removes unused zoom region helper code that caused
npm run build:linuxto fail with TS6133 unused declaration errors.Motivation
On Linux X11, Recordly can receive
screen:linux-portalas the selected source. That value is not a real X11desktopCapturersource ID.Previously, the display media request handler treated this as a Linux portal case and returned a synthetic
screen:0:0source. On X11, this can fail with:On my X11 setup,
desktopCapturer.getSources()returns valid screen sources such as:Using the actual source allows recording to start correctly.
This addresses the X11 capture-source part of #364, but does not attempt to fix the AppImage toolbar/source-selector UI regression.
Type of Change
Related Issue(s)
Related to #364
Screenshots / Video
Screenshot (if applicable):
N/A
Video (wherever possible):
N/A
Testing Guide
Tested on Linux X11 with a multi-monitor setup.
Environment:
Steps tested:
Expected result:
Failed to start recording: Could not start video sourceerror appears.Expected result:
Expected result:
zoomRegionUtils.ts.Checklist
Thank you for contributing!
Summary by CodeRabbit
Bug Fixes
Refactor