feat: patch nextcloud-talk-desktop for Wayland screen sharing #48

Closed
ash-bot wants to merge 1 commits from ash/talk-desktop-wayland-screenshare into main
Collaborator

Screen sharing in Nextcloud Talk Desktop shows a black rectangle on Wayland because the app uses Electron's legacy desktopCapturer API instead of the PipeWire/portal path.

This patches the webpack bundle inside app.asar to inject setDisplayMediaRequestHandler with useSystemPicker: true, which routes screen capture through the native xdg-desktop-portal on Wayland.

Based on upstream draft PR nextcloud/talk-desktop#1022.

Changes:

  • New package overlay: packages/nextcloud-talk-desktop/
  • Communication role uses patched version via pkgs.custom.nextcloud-talk-desktop

⚠️ Needs testing — the asar patching approach works in eval but should be verified on an actual Sway session.

Screen sharing in Nextcloud Talk Desktop shows a black rectangle on Wayland because the app uses Electron's legacy `desktopCapturer` API instead of the PipeWire/portal path. This patches the webpack bundle inside `app.asar` to inject `setDisplayMediaRequestHandler` with `useSystemPicker: true`, which routes screen capture through the native xdg-desktop-portal on Wayland. Based on upstream draft PR [nextcloud/talk-desktop#1022](https://github.com/nextcloud/talk-desktop/pull/1022). **Changes:** - New package overlay: `packages/nextcloud-talk-desktop/` - Communication role uses patched version via `pkgs.custom.nextcloud-talk-desktop` ⚠️ Needs testing — the asar patching approach works in eval but should be verified on an actual Sway session.
johno was assigned by ash-bot 2026-03-16 08:47:01 -07:00
ash-bot added 1 commit 2026-03-16 08:47:03 -07:00
feat: patch nextcloud-talk-desktop for Wayland screen sharing
All checks were successful
CI / check (pull_request) Successful in 2m46s
CI / build-and-cache (pull_request) Has been skipped
8f292893a3
Patches the Electron asar bundle to inject setDisplayMediaRequestHandler
with useSystemPicker: true, which routes screen capture through the
native PipeWire/xdg-desktop-portal pipeline on Wayland.

Based on upstream draft PR nextcloud/talk-desktop#1022.
Uses the patched version in communication role.
johno force-pushed ash/talk-desktop-wayland-screenshare from 8f292893a3 to fb93108a77 2026-03-16 08:50:02 -07:00 Compare
ash-bot closed this pull request 2026-03-16 09:01:52 -07:00
All checks were successful
CI / check (pull_request) Successful in 2m45s
Required
Details
CI / build-and-cache (pull_request) Has been skipped
Required
Details

Pull request closed

Sign in to join this conversation.
No Reviewers
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: johno/nixos-configs#48