fix: add xdg-desktop-portal-wlr for Sway screen sharing #46

Merged
johno merged 3 commits from ash/sway-screen-sharing into main 2026-03-16 07:50:14 -07:00
Collaborator

Screen sharing in Sway was not working because the wlr portal was missing from the xdg portal config.

Changes:

  • Enable xdg.portal.wlr conditionally when cfg.wayland is true
  • Add sway portal config routing ScreenCast and Screenshot interfaces through the wlr backend
  • GTK portal as fallback for other interfaces

After rebuild, verify with:

systemctl --user status xdg-desktop-portal-wlr
Screen sharing in Sway was not working because the wlr portal was missing from the xdg portal config. **Changes:** - Enable `xdg.portal.wlr` conditionally when `cfg.wayland` is true - Add `sway` portal config routing `ScreenCast` and `Screenshot` interfaces through the wlr backend - GTK portal as fallback for other interfaces After rebuild, verify with: ```bash systemctl --user status xdg-desktop-portal-wlr ```
johno was assigned by ash-bot 2026-03-16 07:25:27 -07:00
ash-bot added 1 commit 2026-03-16 07:25:29 -07:00
fix: add xdg-desktop-portal-wlr for Sway screen sharing
Some checks failed
CI / check (pull_request) Failing after 1m47s
CI / build-and-cache (pull_request) Has been skipped
579c5b135e
Enable wlr portal conditionally when wayland is active.
Add sway-specific portal config routing ScreenCast and
Screenshot interfaces through the wlr backend.
johno approved these changes 2026-03-16 07:41:09 -07:00
Dismissed
ash-bot added 1 commit 2026-03-16 07:42:49 -07:00
fix: mkForce sway portal default to resolve conflict with sway module
All checks were successful
CI / check (pull_request) Successful in 2m52s
CI / build-and-cache (pull_request) Has been skipped
23cde06c35
ash-bot added 1 commit 2026-03-16 07:45:29 -07:00
fix: remove custom sway portal config, let NixOS sway module handle it
All checks were successful
CI / check (pull_request) Successful in 2m45s
CI / build-and-cache (pull_request) Has been skipped
CI / check (push) Successful in 2m42s
CI / build-and-cache (push) Successful in 1m37s
091c570249
Only wlr.enable is needed — the sway module already sets
xdg.portal.config.sway.default and adding our own conflicts.
johno approved these changes 2026-03-16 07:49:46 -07:00
johno merged commit 091c570249 into main 2026-03-16 07:50:14 -07:00
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#46