Commit 21c6c089 authored by Ingo Klöcker's avatar Ingo Klöcker
Browse files

Ask GnuPG for the correct path for the uiserver socket

This ensures that clients find the uiserver socket used by Kleopatra.

GnuPG-bug-id: 5619
parent 6df7e800
Pipeline #84834 passed with stage
in 16 minutes and 37 seconds
......@@ -433,6 +433,11 @@ static QString gnupg_home_directory()
static QString get_default_socket_name()
{
const QString socketPath{QString::fromUtf8(GpgME::dirInfo("uiserver-socket"))};
if (!socketPath.isEmpty()) {
// Note: The socket directory exists after GpgME::dirInfo() has been called.
return socketPath;
}
const QString homeDir = gnupg_home_directory();
if (homeDir.isEmpty()) {
return QString();
......
Markdown is supported
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