SpectreOS/scripts/pinentry-wayland
2022-10-04 19:01:31 +02:00

10 lines
232 B
Bash
Executable file

#!/bin/sh
pinentry_shell="pinentry-tty"
pinentry_gui="pinentry-qt"
if [ "$WAYLAND_DISPLAY" = "" -o "$PINENTRY_USER_DATA" = "USE_TTY=1" ]; then
exec $pinentry_shell "$@"
fi
exec env DISPLAY=$WAYLAND_DISPLAY $pinentry_gui "$@"