SpectreOS/scripts/pinentry-wayland

11 lines
232 B
Text
Raw Permalink Normal View History

2022-10-04 19:01:31 +02:00
#!/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 "$@"