-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sway: Simplify screen sharing #123034
sway: Simplify screen sharing #123034
Conversation
This should make it easier to get started. The xdg-desktop-portal backend for wlroots is required and one needs to "make sure WAYLAND_DISPLAY and XDG_CURRENT_DESKTOP are imported into D-Bus." [0] [0]: https://github.com/emersion/xdg-desktop-portal-wlr/blob/efcbcb60aa3bc46b0e290d5f6627783fbb534dcd/README.md#running
I wonder this or newest pull req of portal make my screen sharing broke again, especially on obs-wayland overlay and firefox via home-manager? |
This shouldn't break screen sharing, please open a new issue with more information. |
This breaks screen sharing if the user already has |
@siraben why does screen sharing break if |
Home Manager also starts a service for |
The NixOS module for Sway doesn't start a service for
Not sure what's happening here. AFAIK HM should be completely isolated from the NixOS config. |
I happened to have |
As discussed on Matrix, this is the error that appears for HM
and for
Both issues are resolved when |
Not sure why but I can replicate it with xdg = {
portal = {
enable = true;
extraPortals = with pkgs; [
xdg-desktop-portal-wlr
xdg-desktop-portal-gtk # optionally remove
];
gtkUsePortal = true;
};
}; |
Isn't that the actual issue then (enabling this in both the NixOS and Home Manager configurations)?
That also isn't ideal but I don't think this warrants changing the Sway module (not sure if there's a meta issue for this case is only an example/instance of the underlying problem). |
This should make it easier to get started.
The xdg-desktop-portal backend for wlroots is required and one needs to
"make sure WAYLAND_DISPLAY and XDG_CURRENT_DESKTOP are imported into
D-Bus." 0
Motivation for this change
I've tested this with Chromium (
chromium --enable-features=UseOzonePlatform --ozone-platform=wayland --disable-gpu-memory-buffer-video-frames
) and it worked (with and without XWayland enabled).Users need at least the following to make screen sharing work (that shouldn't be part of the Sway module):
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)