Skip to content

Hangs forever on Generate GnuPG keypair #215

Closed
@jeroenrnl

Description

After I have started QtPass for the first time and entered the info for the GnuPg key generation, it seems to be generating the key, but then hangs forever.
Executing ps -ef | grep gpg reveals that gpg2 is not running anymore.
The CLI simply shows the batchfile (no "Generating a default key"):

"/usr/local/sbin/pass"
"/usr/local/bin/pass"
"/usr/bin/pass"
"/usr/local/sbin/git"
"/usr/local/bin/git"
"/usr/bin/git"
"/usr/local/sbin/gpg2"
"/usr/local/bin/gpg2"
"/usr/bin/gpg2"
"/usr/local/sbin/pwgen"
"/usr/local/bin/pwgen"
"/usr/bin/pwgen"
()
"/usr/bin/gpg2,--gen-key --no-tty --batch,#           QtPass GPG key generator\n#\n#      first test version please comment\n#\n%echo Generating a default key\nKey-Type: default\nSubkey-Type: default\nName-Real: My Name\nName-Comment: QtPass\nName-Email: my@mail.nl\nExpire-Date: 0\nPassphrase: abc123\n# Do a commit here, so that we can later print \"done\" :-)\n%commit\n%echo done"

I have tried manually feeding the generated batch file to gpg2 and then it works alright, no error messages.
I have tried changing the batch file into simply "%echo working", but that doesn't change anything, also no output of the echo on the CLI (I'm not sure if that is supposed to happen)

/usr/bin/gpg2 existst and if I manually feed it a batch file, it works...

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions