dev: automated commit - 2025-09-06 18:25:07

This commit is contained in:
Mariano Z. 2025-09-06 18:25:07 -03:00
parent b18f0b1edf
commit 8a557666a3
6 changed files with 15 additions and 0 deletions

View file

@ -0,0 +1,12 @@
#!/bin/sh
# Context-aware pinentry wrapper
# Uses pinentry-curses for terminal sessions and pinentry-gtk for GUI sessions
# Check if we're in a graphical environment
if [ -n "$DISPLAY" ] || [ -n "$WAYLAND_DISPLAY" ]; then
# GUI environment - use GTK pinentry
exec /usr/bin/pinentry-gtk "$@"
else
# Terminal environment - use curses pinentry
exec /usr/bin/pinentry-curses "$@"
fi