Bug 509350 (QBusiness)

Summary: Microsoft Store: "GpgMe not Installed Correctly" error after update to 25.08.01
Product: [Applications] okular Reporter: business.qa3rb
Component: generalAssignee: Okular developers <okular-devel>
Status: RESOLVED FIXED    
Severity: major CC: aacid, jbentley3, sadly-bankable-lid
Priority: NOR    
Version First Reported In: 25.08.0   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Error message
PDF backend

Description business.qa3rb 2025-09-10 16:21:15 UTC
SUMMARY

Microsoft Store: "GpgMe not Installed Correctly" error after update to 25.08.01

STEPS TO REPRODUCE

    1. Install Okular from the Microsoft Store on Windows 10.

    2. Ensure it is updated to the latest version (25.08.01, updated on or around September 9th, 2025).

    3. Open any PDF file.

OBSERVED RESULT

An error dialog box appears with the following message:

---
   
# GpgMe not Installed Correctly

gpgme-w32spawn.exe was not found in the detected installation directory of GpgME
"C:\ProgramFiles\WindowsApps\KDEe.V.Okular_20.801.6694.0_x64__8vt06qxq8ptv8\bin"

Crypto operations will not work.

If you see this it indicates a problem with your installation. Please report the problem to your distributor of GpgME.

Developer's Note: The install dir can be manually set with gpgme_set_global_flag

---

EXPECTED RESULT

The PDF file should open without any error message. The GpgMe dependency should be correctly included in the Microsoft Store package.

SOFTWARE/OS VERSIONS
Windows: Windows 10 Pro
macOS: N/A
Linux/KDE Plasma: N/A
Comment 1 Albert Astals Cid 2025-09-10 21:19:04 UTC
Can not reproduce.

Can you attach the pdf that is giving you that problem just in case?

Can you attach the video of what you are doing/getting?

Which options do you have in settings->configure backends->pdf->signing backend?
Comment 2 gamer191 2025-09-11 02:54:10 UTC
Created attachment 184876 [details]
Error message
Comment 3 gamer191 2025-09-11 02:56:21 UTC
It occurs for me with any PDF, such as https://www.sbr.gov.au/sites/default/files/2022-03/Test%20PDF%20document.pdf
Comment 4 gamer191 2025-09-11 02:57:16 UTC
Created attachment 184877 [details]
PDF backend
Comment 5 gamer191 2025-09-11 03:00:49 UTC
It's worth noting that the PDF backend is version 0.6.5 (which I assume is outdated based on the copyright year of 2005-2008)

I assume that's also an issue with the MS Store binaries, snce I don't recall ever needing to manually install backends for Okular
Comment 6 Albert Astals Cid 2025-09-11 13:08:51 UTC
The PDF backend version is fine
Comment 7 John Bentley 2025-09-11 13:40:25 UTC
I started having this same issue yesterday (September 10, 2025) when I updated Okular to version 25.08.1 through Microsoft Store on my Windows 10 system. I tried copying the gpgme-w32spawn.exe file from my Gpg4win installation to the C:\Program Files\WindowsApps\KDEe.V.Okular_25.801.6693.0_x64__7vt06qxq7ptv8\bin directory, but Windows denied permission.
Comment 8 Albert Astals Cid 2025-09-11 14:17:05 UTC
I guess that may be a difference with my system, i do not have Gpg4win. 

business.qa3rb@slmail.me / gamer191 (are you the same person?) do you have Gpg4win installed?
Comment 9 gamer191 2025-09-11 23:46:39 UTC
> are you the same person?
No
> do you have Gpg4win installed?
Yes

I just tried renaming `C:\Program Files (x86)\gnupg\bin` (in order to disable gpg4win) and the error message went away
Comment 10 gamer191 2025-09-12 00:03:38 UTC
I just tested and the problematic file is C:\Program Files (x86)\gnupg\bin\gpgconf.exe. C:\Program Files (x86)\gnupg\bin is in my PATH, so that exe would be loaded if Okular tried to load gpgconf.exe (without specifying a location) but idk why it's doing that since Okular doesn't seem to have any program file named gpgconf.exe

Based on the name (I presume gpgconf is a GPG configuration tool), I guess it's possible that it's expected for Okular to load it if it exists, but that something in my Gpg config is causing issues
Comment 11 Sune Vuorela 2025-09-12 14:09:38 UTC
Git commit fcbb2189e136f95dc2d46a3cab364d3f1c75d2a1 by Sune Vuorela.
Committed on 12/09/2025 at 14:06.
Pushed by aacid into branch 'master'.

Don't filter out gpgme-w32spawn for gpgme apps

gpgme-w32spawn is *required* on windows for apps using gpgme. Don't
filter it away. It gives all sorts of weird issues, including noisy
popups.

M  +1    -1    kde/applications/okular/okular.py

https://invent.kde.org/packaging/craft-blueprints-kde/-/commit/fcbb2189e136f95dc2d46a3cab364d3f1c75d2a1
Comment 12 Albert Astals Cid 2025-09-13 10:04:35 UTC
There should be a new update in a few hours/days that fixes this. If after updating you still have the problem, please make a comment