make sure pinentry can accept args
This commit is contained in:
parent
374b8435a8
commit
7fb3361906
1 changed files with 6 additions and 6 deletions
|
|
@ -8,18 +8,18 @@ pkgs.writeShellApplication {
|
||||||
if [ -v XDG_SESSION_TYPE ]; then
|
if [ -v XDG_SESSION_TYPE ]; then
|
||||||
case $XDG_SESSION_TYPE in
|
case $XDG_SESSION_TYPE in
|
||||||
tty)
|
tty)
|
||||||
pinentry-tty;;
|
pinentry-tty $@;;
|
||||||
*)
|
*)
|
||||||
pinentry-gnome3;;
|
pinentry-gnome3 $@;;
|
||||||
esac
|
esac
|
||||||
elif [ -v SSH_CLIENT ] && [ -n "$SSH_CLIENT" ]; then
|
elif [ -v SSH_CLIENT ] && [ -n "$SSH_CLIENT" ]; then
|
||||||
pinentry-tty
|
pinentry-tty $@
|
||||||
elif [ -v WAYLAND_DISPLAY ] && [ -n "$WAYLAND_DISPLAY" ]; then
|
elif [ -v WAYLAND_DISPLAY ] && [ -n "$WAYLAND_DISPLAY" ]; then
|
||||||
pinentry-gnome3
|
pinentry-gnome3 $@
|
||||||
elif [ -v DISPLAY ] && [ -n "$DISPLAY" ]; then
|
elif [ -v DISPLAY ] && [ -n "$DISPLAY" ]; then
|
||||||
pinentry-gnome3
|
pinentry-gnome3 $@
|
||||||
else
|
else
|
||||||
pinentry-tty
|
pinentry-tty $@
|
||||||
fi
|
fi
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue