poppler/SignatureHandler.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit b02ecd63f279691913aa58ecf3524db95dc565aa Author: Albert Astals Cid <aa...@kde.org> Date: Fri Feb 4 00:24:47 2022 +0100 Windows: Better way to access Mozilla appdata diff --git a/poppler/SignatureHandler.cc b/poppler/SignatureHandler.cc index 3032623a..9ad264a8 100644 --- a/poppler/SignatureHandler.cc +++ b/poppler/SignatureHandler.cc @@ -669,11 +669,11 @@ std::unique_ptr<X509CertificateInfo> SignatureHandler::getCertificateInfo() cons static std::optional<std::string> getDefaultFirefoxCertDB() { #ifdef _WIN32 - const char *env = getenv("USERPROFILE"); + const char *env = getenv("APPDATA"); if (!env) { return {}; } - const std::string firefoxPath = std::string(env) + "/AppData/Roaming/Mozilla/Firefox/Profiles/"; + const std::string firefoxPath = std::string(env) + "/Mozilla/Firefox/Profiles/"; #else const char *env = getenv("HOME"); if (!env) {