Dear all,
I’d like to dig up this old thread.
I recently moved to Wayland and Sway an am quite happy with it.
Unfortunately I don't manage to get Screen Sharing working.
When I use e.g. Jitsi in Firefox video and audio works fine but
with screen sharing it keeps telling me it uses operating system
settings and screen is not shared. Using WebEx in Firefox it
additionally tells me that the permissions to share content are
not given.
I considered all of the hints that were given in this 1 year old
thread.
My configuration currently is similar to the one presented by
Arnaud:
```
(service
home-pipewire-service-type)
(service
home-dbus-service-type)
```
in my `home-config.scm` plus
```
exec
$HOME/.guix-home/profile/bin/dbus-update-activation-environment
--systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway >/dev/null 2>&1
&
exec $HOME/.guix-home/profile/libexec/xdg-desktop-portal -r
/dev/null 2>&1 &
exec $HOME/.guix-home/profile/libexec/xdg-desktop-portal-wlr -r
/dev/null 2>&1 &
```
in my `$HOME/.config/sway/config`
And sway is started using `dbus-run-session -- sway` from a login
tty.
Is there anything I'm missing?
Best regards
Alex
On Sat, Jan 18 2025, 22:38:38, Arnaud Daby-Seesaram
<[email protected]> wrote:
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