This forum has been archived. All content is frozen. Please use KDE Discuss instead.
Please use bugs.kde.org for bug reports or feature requests. Development related questions should be directed to the okular-devel mailing list.

No PDF backend found after upgrade from KDE 4.10.5 to 4.11.2

Tags: None
(comma "," separated)
User avatar
ipwizard
KDE Developer
Posts
1359
Karma
6
OS
I upgraded KDE4 on my openSuSE 12.2 system and since then I have a problem viewing PDF documents. Everytime I try to open a PDF document, I get the following message in a terminal and in an okular dialog:
Code: Select all
okular(12308)/okular (app) Okular::Document::openDocument: No plugin for mimetype '"application/pdf"'.

Which course does okular take to determine the backend? I don't see the PDF backend in the settings section either. I do have/see ebup, ps, txt, odt etc. Poppler is installed (pdfinfo gives correct information). Any help/pointer is very much appreciated, because okular is my choice of PDF viewing. In case more information is needed, please let me know. I can certainly provide it.

Here the version info:
Code: Select all
thb@thb-nb:~> okular --version
Qt: 4.8.5
KDE Development Platform: 4.11.2
Okular: 0.17.2


ipwizard, proud to be a member of the KMyMoney forum since its beginning. :-D
openSuSE Leap 15.4 64bit, KF5
User avatar
google01103
Manager
Posts
6668
Karma
25
try the following command: /usr/bin/update-desktop-database


OpenSuse Leap 42.1 x64, Plasma 5.x

User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Do the files /usr/share/kde4/services/okularPoppler.desktop and /usr/share/kde4/services/libokularGenerator_poppler.desktop exist?


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
ipwizard
KDE Developer
Posts
1359
Karma
6
OS
bcooksley wrote:Do the files /usr/share/kde4/services/okularPoppler.desktop and /usr/share/kde4/services/libokularGenerator_poppler.desktop exist?
Yes, they both exist as part of package okular-4.11.2-5.1.x86_64


ipwizard, proud to be a member of the KMyMoney forum since its beginning. :-D
openSuSE Leap 15.4 64bit, KF5
User avatar
ipwizard
KDE Developer
Posts
1359
Karma
6
OS
google01103 wrote:try the following command: /usr/bin/update-desktop-database
Running it (as root) does not make any difference.


ipwizard, proud to be a member of the KMyMoney forum since its beginning. :-D
openSuSE Leap 15.4 64bit, KF5
User avatar
google01103
Manager
Posts
6668
Karma
25
does Okular work for a new user?


OpenSuse Leap 42.1 x64, Plasma 5.x

User avatar
ipwizard
KDE Developer
Posts
1359
Karma
6
OS
google01103 wrote:does Okular work for a new user?
Nope :( On a complete new user I see the same error. A good question though.


ipwizard, proud to be a member of the KMyMoney forum since its beginning. :-D
openSuSE Leap 15.4 64bit, KF5
User avatar
google01103
Manager
Posts
6668
Karma
25
I'd uninstall all the Poppler (I have 5 installed) and Okular packages and then reinstall


OpenSuse Leap 42.1 x64, Plasma 5.x

User avatar
ipwizard
KDE Developer
Posts
1359
Karma
6
OS
Looks like okular searches for a mimetype of "application/x-pdf" which it cannot find. I am not a xdg/desktop/mime-type expert at all, so please be patient with me. Using a simple
Code: Select all
mkdir -p ~/.local/share/mime/application
ln -s /usr/share/mime/application/pdf.xml ~/.local/share/mime/application/x-pdf.xml

solved the problem for me so far, though I know it's just a hack which I actually want to get rid of again. Strange enough, kmimetypefinder shows this:

Code: Select all
thb@thb-nb:~> kmimetypefinder mozilla.pdf
application/pdf
(accuracy 100)
and ktraderclient includes both x-pdf and pdf.

Code: Select all
thb@thb-nb:~> ktraderclient --servicetype okular/Generator | grep ServiceTypes
ServiceTypes : 'okular/Generator - application/postscript - image/x-eps'
ServiceTypes : 'okular/Generator - application/x-dvi'
ServiceTypes : 'okular/Generator - image/fax-g3 - image/g3fax'
ServiceTypes : 'okular/Generator - application/x-chm'
ServiceTypes : 'okular/Generator - image/bmp - image/x-dds - image/x-eps - image/x-exr - image/gif - image/x-hdr - image/x-ico - image/jp2 - image/jpeg - video/x-mng - image/x-portable-bitmap - image/x-pcx - image/x-portable-graymap - image/png - image/x-portable-pixmap - image/x-psd - image/x-rgb - image/x-tga - image/tiff - image/x-xbitmap - image/x-xcf - image/x-xpixmap'
ServiceTypes : 'okular/Generator - application/prs.plucker'
ServiceTypes : 'okular/Generator - application/vnd.oasis.opendocument.text'
ServiceTypes : 'okular/Generator - application/oxps - application/vnd.ms-xpsdocument'
ServiceTypes : 'okular/Generator - application/x-fictionbook+xml'
ServiceTypes : 'okular/Generator - text/plain'
ServiceTypes : 'okular/Generator - application/x-pdf - application/pdf - application/x-wwf'
ServiceTypes : 'okular/Generator - image/vnd.djvu'
ServiceTypes : 'okular/Generator - application/epub+zip'
ServiceTypes : 'okular/Generator - image/tiff'
ServiceTypes : 'okular/Generator - application/x-cbz - application/x-cbr - application/x-cbt - inode/directory'

As the non-expert I have no idea what to look into next. I already got a copy of okular from git but the relecant desktop files of the poppler backend are identical to the ones I have on my box.


ipwizard, proud to be a member of the KMyMoney forum since its beginning. :-D
openSuSE Leap 15.4 64bit, KF5
User avatar
google01103
Manager
Posts
6668
Karma
25
wouldn't removing then re-installing all the related rpm's reset/reinitialize the mime types?


OpenSuse Leap 42.1 x64, Plasma 5.x

User avatar
ipwizard
KDE Developer
Posts
1359
Karma
6
OS
Maybe, but there are just too many (116) dependencies on the poppler lib and I don't want to screw around with this system too much.


ipwizard, proud to be a member of the KMyMoney forum since its beginning. :-D
openSuSE Leap 15.4 64bit, KF5
User avatar
google01103
Manager
Posts
6668
Karma
25
you could try just reinstalling the Poppler libs


OpenSuse Leap 42.1 x64, Plasma 5.x

wolfi323
Registered Member
Posts
1129
Karma
11
OS
User avatar
ipwizard
KDE Developer
Posts
1359
Karma
6
OS
Seems to be related (from what I can tell). So it's a matter of waiting and trying again. Until then, my workaround seems to do the trick.Thanks all for helping out.


ipwizard, proud to be a member of the KMyMoney forum since its beginning. :-D
openSuSE Leap 15.4 64bit, KF5
wolfi323
Registered Member
Posts
1129
Karma
11
OS
wolfi323 wrote:Should be fixed in 4.11.3 then:
https://projects.kde.org/projects/kde/k ... d89ec6bfcb

I just noticed that this patch is included in openSUSE's packages since 2 days ago. So maybe this actually caused your problem?
There's a followup patch already though:
https://projects.kde.org/projects/kde/k ... 050c90ea99

There's a similar thread in the openSUSE forums as well, btw: https://forums.opensuse.org/english/get ... ost2592560


Bookmarks



Who is online

Registered users: bancha, Bing [Bot], Evergrowing, Google [Bot], Sogou [Bot]