From a994a08a2901fb8c8c541053e8b968d6f7d78bd4 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Sun, 31 Oct 2021 16:49:04 +0100 Subject: Xsession: show an error if adding a FIDO key fails --- dotfiles/Xsession | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dotfiles/Xsession b/dotfiles/Xsession index ab17699..72065a5 100644 --- a/dotfiles/Xsession +++ b/dotfiles/Xsession @@ -17,7 +17,8 @@ run_if_exists parcellite # on FIDO HW key add/remove, update the SSH agent udev_match --subsystem=hidraw --match=ACTION=remove --match=ID_FIDO_TOKEN=1 ssh_sk_clean & -udev_match --subsystem=hidraw --match=ACTION=add --match=ID_FIDO_TOKEN=1 "ssh-add -K" & +udev_match --subsystem=hidraw --match=ACTION=add --match=ID_FIDO_TOKEN=1 \ + "ssh-add -K || notify-send -u critical 'Error adding FIDO2 keys to SSH agent' 'Wrong PIN?'" & # source the machine-local configuration [ -r "$HOME/.config/Xsession_local" ] && . "$HOME/.config/Xsession_local" -- cgit v1.2.3