okular does not print and no preview

Bug #1903844 reported by udippel
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
okular (Ubuntu)
New
Undecided
Unassigned

Bug Description

Okular doesn't show any preview and doesn't print.
20_04 daily updated.
(Deleted all my printers and re-setup thrice, before I noticed the missing preview.)

Setup printer afresh, and $lpr -P foo file.pdf prints fabulously.

Okay, Preview brings up a red box on top briefly, followed by a brief 'welcome' and then it is just a single small empty page (original had 4 pages).

ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: okular 4:19.12.3-2ubuntu1
ProcVersionSignature: Ubuntu 5.4.0-52.57-generic 5.4.65
Uname: Linux 5.4.0-52-generic x86_64
ApportVersion: 2.20.11-0ubuntu27.11
Architecture: amd64
CasperMD5CheckResult: skip
CurrentDesktop: KDE
Date: Wed Nov 11 12:36:49 2020
InstallationDate: Installed on 2019-03-14 (607 days ago)
InstallationMedia: Kubuntu 18.04.1 LTS "Bionic Beaver" - Release amd64 (20180725)
SourcePackage: okular
UpgradeStatus: Upgraded to focal on 2020-09-29 (42 days ago)

Revision history for this message
udippel (udippel) wrote :
Revision history for this message
Matthias Fenner (inf0rmix) wrote :

disabling appamor does the trick - so it seems to be a bug in the specific appamor confinement.

any advice how to rebuild it (I only have selinux skills :D )

Revision history for this message
Matthias Fenner (inf0rmix) wrote :

Adding

"# version 1

abi <kernel>,

include <local/VARIABLES>
@{SFX}=pdf PDF

profile okular /usr/bin/okular
{
include <local/ONLYLOCAL>
include <local/ISAKDE>
# include <local/USECUPS>

owner /home/*/.local/share/okular/** rw,
owner /home/*/.local/share/okular/bookmarks* l -> /home/*/.local/share/okular/#[0-9]*,

@{MYDATADIRS}/**.@{SFX} rw,
}
"

to /etc/apparmor.d/usr.bin.okular

and restarting appamor fixed the problem - i now can print using okular with activated appamor

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.