This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

desktops.sway: export XDG_SESSION_TYPE=wayland to user services

Firefox started from the systemd user manager (firefox.service) only got
DISPLAY but not XDG_SESSION_TYPE. With DISPLAY set and XDG_SESSION_TYPE
unset, its WebRTC capturer takes the X11/XWayland screencast path, which
captures a black screen under sway. Exporting XDG_SESSION_TYPE=wayland
makes it use the PipeWire portal instead, fixing screen sharing.

Assisted-by: Claude Code (claude-opus-4-8[1m])

+6 -1
+6 -1
2configs/desktops/sway/default.nix
··· 428 428 # theme and env specific stuff 429 429 exec_always ${pkgs.writers.writeDash "dbus-sway-environment" '' 430 430 set -efux 431 - dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP=sway 431 + # XDG_SESSION_TYPE=wayland must be exported here: with DISPLAY set but 432 + # XDG_SESSION_TYPE unset, Firefox (and other apps) started from the systemd 433 + # user manager pick the X11/XWayland screencast path, which captures a black 434 + # screen under sway. Setting it explicitly makes them use the PipeWire portal. 435 + dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP=sway XDG_SESSION_TYPE=wayland 436 + systemctl --user set-environment XDG_SESSION_TYPE=wayland 432 437 systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP 433 438 systemctl --user start --no-block sway-session.target 434 439 systemctl --user stop xdg-desktop-portal xdg-desktop-portal-wlr