You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
rofi-pass does not check the exit status of pass, which hides failures from the caller of rofi-pass.
This would be useful for things that wrap rofi-pass. The wrapper could take some action upon detecting a failure of rofi-pass - for example, send a notification to the user's notification daemon.
Observed behaviour
For example, if my PGP key is unavailable, then pass show results in an exit status of 2:
% pass insert test_pass
Enter password for test_pass:
Retype password for test_pass:
% pass show test_pass
gpg: decryption failed: No secret key
% echo $?
2
However, doing rofi-pass and choosing the same password from the list of passwords results in an exit code of 0:
rofi-pass
does not check the exit status ofpass
, which hides failures from the caller ofrofi-pass
.This would be useful for things that wrap
rofi-pass
. The wrapper could take some action upon detecting a failure ofrofi-pass
- for example, send a notification to the user's notification daemon.Observed behaviour
For example, if my PGP key is unavailable, then
pass show
results in an exit status of 2:However, doing
rofi-pass
and choosing the same password from the list of passwords results in an exit code of 0:(nb. I have my
rofi-pass
configured withdefault_do='typePass'
)Expected behaviour
If
pass
returns a non-zero exit status, thenrofi-pass
should:The text was updated successfully, but these errors were encountered: