3
0
Fork 0
forked from mirrors/nixpkgs

nixos/ssh: pass WAYLAND_DISPLAY to ssh-askpass

This commit is contained in:
Kazutoshi Noguchi 2022-10-11 00:15:49 +09:00
parent 44a54140c0
commit 67246fbffa

View file

@ -14,6 +14,7 @@ let
''
#! ${pkgs.runtimeShell} -e
export DISPLAY="$(systemctl --user show-environment | ${pkgs.gnused}/bin/sed 's/^DISPLAY=\(.*\)/\1/; t; d')"
export WAYLAND_DISPLAY="$(systemctl --user show-environment | ${pkgs.gnused}/bin/sed 's/^WAYLAND_DISPLAY=\(.*\)/\1/; t; d')"
exec ${askPassword} "$@"
'';