Closed spipau closed 3 weeks ago
This error is probably related to either GPGME or GPG, not Lock.
Two questions:
I updated the application and the error occurred. I then did the following:
Can you show me the contents of ~/.gnupg/gpg.conf
and ~/.gnupg/gpg-agent.conf
?
For context on the error: A Pinentry is the password dialog of GnuPG. Your system's GPG Agent cannot find or initialize it. The Pinentry should be configured in those two configuration files. Here's an example of how they should look like:
gpg.conf
use-agent
gpg-agent.conf
pinentry-program /usr/bin/pinentry-gnome3
Both files do not exists on my machine. If I add a key via the commandline then it shows up in Lock but all operations fail. /usr/bin/pinentry-gnome3
does exist on my system.
I got:
$ gpg --version
gpg (GnuPG) 2.4.4
libgcrypt 1.10.3
Where is the password prompt displayed when you use GPG in the command line? (e. g. terminal, GUI prompt, …)
Could you please also share the output of flatpak info --show-permissions com.konstantintutsch.Lock
?
I've not been able to reproduce this bug so far
When I use gpg --gen-key
then UI pops up to ask me for a password.
Output of flatpak info --show-permissions com.konstantintutsch.Lock
:
[Context]
shared=ipc;
sockets=x11;wayland;fallback-x11;gpg-agent;
devices=dri;
filesystems=xdg-run/gvfsd;~/.gnupg:create;
[Session Bus Policy]
org.gtk.vfs.*=talk
org.gnome.keyring.SystemPrompter=talk
Could you please try to run flatpak run --command=pinentry-gnome3 com.konstantintutsch.Lock
?
Lock does not open when I run the command and the terminal just waits:
flatpak run --command=pinentry-gnome3 com.konstantintutsch.Lock
OK Pleased to meet you, process 2
I think I've been able to reproduce this on a Ubuntu VM now. Can you provide me with the log of the gpg-agent on your system so I can confirm this?
Create ~/.gnupg/gpg-agent.conf
and add log-file <path>
to it. Restart the agent with gpgconf --kill gpg-agent
and try to generate a new keypair in Lock again.
Unfortunately there are no logs written when I do the following:
touch ~/.gnupg/gpg-agent.conf
log-file ~/.gnupg/log.log
to the new filetouch ~/.gnupg/log.log
gpgconf --kill gpg-agent
~/.gnupg/log.log
remains empty.
Did you confirm that the GPG Agent is enabled and running?
gpg.conf
use-agent
I am not very familiar with GPG and don't understand what you mean. Sorry, I think I won't be able to debug this any further :confused:
Happy to test an update and see if it works :+1:
Describe the bug …
+
buttontest
for name andtest@test.com
for mailUbuntu 24.04.1 LTS, GNOME 46, Wayland
Which version of Lock are you using?
1.0.1
Source
Flathub
Relevant log output