Open proninyaroslav opened 1 week ago
Have you tried adding these to files containing this specific configuration?
~/.gnupg/gpg.conf
use-agent
~/.gnupg/gpg-agent.conf
pinentry-program /usr/bin/pinentry-gnome3
Then reboot and try again.
The dialog is displayed, but it says that the card is not found and asks to insert it. Decryption with the gpg -d
command works. Another oddity: if I decrypted a file with gpg -d
and then tried to decrypt it with Lock
, it writes Bad password
in the log (including gpg
) and PIN input dialog isn't displayed. Only removing and inserting the card from USB helps.
$ gpg -d -o out.txt in.txt
gpg: encrypted with rsa4096 key, ID ***, created ***
"Yaroslav Pronin <***>"
$ flatpak run -v com.konstantintutsch.Lock
...
** (com.konstantintutsch.Lock:2): WARNING **: 17:25:34.689: Failed to decrypt GPGME data from file: Bad password
$ gpg -d -o out.txt in.txt
gpg: encrypted with rsa4096 key, ID ***, created ***
"Yaroslav Pronin <***>"
gpg: public key decryption failed: Bad password
gpg: decryption failed: Bad password
The bad password error is a problem with either GnuPG or GPGME. You might want to report it there.
For the other one, I'm not sure whether I can fix that. I have not found any information in the GPGME configuration on selecting which Pinentry to use.
I'll continue to work on this because it seems like this issue is rather common (#17), but manually adding those two configuration files seems to be the only option currently available.
Adding a pair of lines to configuration files is not so problematic, but the fact is that it still doesn't work as expected. The card isn't visible for it, it asks to insert the card, although the PIN dialog works fine with other apps (for example git or Kleopatra).
Could you then please open a separate issue for this problem?
Describe the bug …
I use Fedora 41 with GNOME. I tried to decrypt a file or text but it tells me that decryption failed, it doesn't ask for the smart card PIN code (I use Nitrokey). I decided to look at the log output and ran the app in the terminal:
$ flatpak run -v com.konstantintutsch.Lock
and only in this mode he asked me for the PIN code of my smart card. But it was not a GNOME GUI window, but a CLI interface in the terminal where I ran the app. it was strange. Without a terminal I don't get any PIN code entry dialog, and only if I run it in a terminal I get a CLI entry form.
Which version of Lock are you using?
1.0.3
Source
Flathub
Relevant log output