[poppler] poppler/SignatureHandler.cc

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Feb 2 19:25:46 UTC 2022


 poppler/SignatureHandler.cc |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 652ff5ea5ec6df2c4343ff730dee5e7893138104
Author: Albert Astals Cid <aacid at kde.org>
Date:   Wed Feb 2 20:20:22 2022 +0100

    Fix getting the home dir in Windows

diff --git a/poppler/SignatureHandler.cc b/poppler/SignatureHandler.cc
index 43fc974e..22a620c6 100644
--- a/poppler/SignatureHandler.cc
+++ b/poppler/SignatureHandler.cc
@@ -669,7 +669,7 @@ std::unique_ptr<X509CertificateInfo> SignatureHandler::getCertificateInfo() cons
 static std::optional<std::string> getDefaultFirefoxCertDB()
 {
 #ifdef _WIN32
-    const std::string firefoxPath = std::string(getenv("HOME")) + "/AppData/Roaming/Mozilla/Firefox/Profiles/";
+    const std::string firefoxPath = std::string(getenv("USERPROFILE")) + "/AppData/Roaming/Mozilla/Firefox/Profiles/";
 #else
     const std::string firefoxPath = std::string(getenv("HOME")) + "/.mozilla/firefox/";
 #endif


More information about the poppler mailing list