Hi, I am not an expert at Wayland (at all), but my current Sway configuration works for screen sharing (I have just made a test in Librewolf). Here is a brief description of my solution:
- I use Guix System. My list of services contains most of
%desktop-services (+ other irrelevant services),
- I configure Sway using Guix Home and start it from a TTY.
I have added both xdg-desktop-portal and xdg-desktop-portal-wlr to my
Guix Home packages (via the `packages' field of `sway-configuration').
In a previous iteration of my setup, they were not in the same
profile, and screen sharing did not work.
I use `home-pipewire-service-type' and `home-dbus-service-type'.
Moreover, Sway executes the following at startup & reload:
+ (file-append
dbus "/bin/dbus-update-activation-environment "
"--systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway")
+ "$HOME/.guix-home/profile/libexec/xdg-desktop-portal -r"
+ "$HOME/.guix-home/profile/libexec/xdg-desktop-portal-wlr -r"
I do not claim that this is the right way to do it, but it works for me.
If others have a cleaner solution, or an explanation for why it works,
I would love to read them.
Best regards,
--
Arnaud
signature.asc
Description: PGP signature
