Bug 509271

Summary: Document preview asks for Okular for KDE 5 despite both having latest versions of Okular and okularpart installed
Product: [Applications] KBibTeX Reporter: james.isaacs.31415
Component: GeneralAssignee: Thomas Fischer <fischer>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version First Reported In: 0.10   
Target Milestone: ---   
Platform: EndeavourOS   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description james.isaacs.31415 2025-09-08 12:16:28 UTC
SUMMARY

Bibliography entries with local PDFs are not showing in the document preview panel. The error message shown is

    Don’t know how to show mimetype ‘application/pdf’.

    Please install Okular for KDE Frameworks 5 to make use of its PDF viewing component.

    Okular for KDE 4 will not work.

I have 
kbibtex Version: 1:0.10.0-7 
okular Version: 25.08.0-1
okularpart5 Version: 23.08.5-3

mimetypes for PDF in file associations are set for Okular as the application and Okularpart as the embedded application.

PDFs open without any issue in Okular, even using KBibTex's 'Open in external program' option - the problem seems restricted to okularpart.

STEPS TO REPRODUCE
1.  add a local PDF to a bibliography entry
2. attempt to view in Document Preview panel

OBSERVED RESULT

Error message as above

EXPECTED RESULT

Preview of the PDF

SOFTWARE/OS VERSIONS
Operating System: EndeavourOS 
KDE Plasma Version: 6.4.4
KDE Frameworks Version: 6.17.0
Qt Version: 6.9.2
Kernel Version: 6.15.6-arch1-1 (64-bit)

ADDITIONAL INFORMATION