dev: automated commit - 2025-09-06 18:25:07
This commit is contained in:
parent
b18f0b1edf
commit
8a557666a3
6 changed files with 15 additions and 0 deletions
12
local-bin/.local/bin/pinentry-wrapper
Executable file
12
local-bin/.local/bin/pinentry-wrapper
Executable 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue