From fe6ff274b7988be0dcb22842e55f82810bdbef9b Mon Sep 17 00:00:00 2001 From: Alex Bates Date: Wed, 19 Aug 2026 15:19:38 +0000 Subject: [PATCH] fix Xwayland access under niri Change-Id: I31ba9233511ae11d48bd5b5506e6ee976a6a6964 --- modules/home/niri/default.nix | 11 ++++++++++- 1 file(s) changed, 10 insertion(s)(+), 1 deletion(s)(-) diff --git a/modules/home/niri/default.nix b/modules/home/niri/default.nix --- a/modules/home/niri/default.nix +++ b/modules/home/niri/default.nix @@ -8,6 +8,15 @@ ... }: let isNixOS = osConfig != null; + xwaylandSatellite = pkgs.writeShellScriptBin "xwayland-satellite" '' + if [[ "''${1-}" == :* ]]; then + display="$1" + shift + exec ${lib.getExe pkgs.xwayland-satellite} "$display" -ac "$@" + fi + + exec ${lib.getExe pkgs.xwayland-satellite} -ac "$@" + ''; in { imports = [ @@ -30,7 +39,7 @@ xdg.portal.extraPortals = with pkgs; [ xdg-desktop-portal-gnome ]; home.packages = with pkgs; [ - xwayland-satellite + xwaylandSatellite nautilus wf-recorder slurp -- tangled.sh