Unverified Commit a365ef17 authored by Andre Heinecke's avatar Andre Heinecke
Browse files

Always start gpg-agent on startup

Start the gpg-agent early, this is done explicitly
because on an empty keyring our keylistings wont start
the agent. In that case any assuan-connect calls to
the agent will fail. The requested start via the
connection is additionally done in case the gpg-agent
is killed while Kleopatra is running.
parent 3fd2d2c6
Pipeline #169319 passed with stage
in 2 minutes and 7 seconds
......@@ -231,6 +231,13 @@ void KleopatraApplication::init()
}
add_resources();
DN::setAttributeOrder(Settings{}.attributeOrder());
/* Start the gpg-agent early, this is done explicitly
* because on an empty keyring our keylistings wont start
* the agent. In that case any assuan-connect calls to
* the agent will fail. The requested start via the
* connection is additionally done in case the gpg-agent
* is killed while Kleopatra is running. */
startGpgAgent();
connect(&d->readerStatus, &SmartCard::ReaderStatus::startOfGpgAgentRequested,
this, &KleopatraApplication::startGpgAgent);
d->setupKeyCache();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment