fix: add xdg-desktop-portal-wlr for Sway screen sharing
Enable wlr portal conditionally when wayland is active. Add sway-specific portal config routing ScreenCast and Screenshot interfaces through the wlr backend.
This commit is contained in:
@@ -17,9 +17,10 @@ in
|
||||
services.gnome.gnome-keyring.enable = true;
|
||||
programs.kdeconnect.enable = true;
|
||||
|
||||
# XDG Desktop Portal for default application handling in non-KDE environments
|
||||
# XDG Desktop Portal for default application handling
|
||||
xdg.portal = {
|
||||
enable = true;
|
||||
wlr.enable = cfg.wayland; # xdg-desktop-portal-wlr for Sway screen sharing
|
||||
extraPortals = with pkgs; [
|
||||
kdePackages.xdg-desktop-portal-kde # For KDE application integration
|
||||
xdg-desktop-portal-gtk # Fallback for GTK applications
|
||||
@@ -31,6 +32,11 @@ in
|
||||
i3 = {
|
||||
default = ["kde" "gtk"];
|
||||
};
|
||||
sway = {
|
||||
default = ["wlr" "gtk"];
|
||||
"org.freedesktop.impl.portal.ScreenCast" = "wlr";
|
||||
"org.freedesktop.impl.portal.Screenshot" = "wlr";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user