This commit is contained in:
2026-07-24 11:51:58 -03:00
parent 57f2689be5
commit fedb2b87df
17 changed files with 492 additions and 463 deletions
+6 -1
View File
@@ -7,7 +7,12 @@
let
pinentry-wrapper = pkgs.writeShellScriptBin "pinentry-wrapper" ''
if [ -n "''${SSH_CONNECTION:-}" ] || [ -n "''${SSH_TTY:-}" ]; then
# ponytail: gpg-agent's env is captured at boot (often on tty1), so SSH_* checks
# from the agent miss SSH sessions. Fall back to curses when no usable display
# is available, since rofi needs WAYLAND_DISPLAY/DISPLAY the agent may not have.
if [ -n "''${SSH_CONNECTION:-}" ] \
|| [ -n "''${SSH_TTY:-}" ] \
|| [ -z "''${WAYLAND_DISPLAY:-}" ] && [ -z "''${DISPLAY:-}" ]; then
exec ${pkgs.pinentry-curses}/bin/pinentry-curses "$@"
else
exec ${pkgs.pinentry-rofi}/bin/pinentry-rofi "$@"