Public bug reported: Currently, the utility pdf2dsc in ghostscript is not able to create .dsc files in the user's home directory. This is problematic for tools that use this utility (eg preview-latex in Emacs).
The error is easy to reproduce with eg ``` $ pdf2dsc $HOME/x.pdf $HOME/out.dsc Error: /invalidfileaccess in --file-- ``` The solution is to add the dsc extension in /etc/apparmor.d/tunables/gs. (Cf the discussion at https://bugs.ghostscript.com/show_bug.cgi?id=709521 which I started to investigate this, also https://lists.gnu.org/archive/html/auctex/2026-07/msg00004.html) ProblemType: Bug DistroRelease: Ubuntu 26.04 Package: ghostscript 10.06.0~dfsg-3ubuntu1 ProcVersionSignature: Ubuntu 7.0.0-22.22-generic 7.0.0 Uname: Linux 7.0.0-22-generic x86_64 ApportVersion: 2.34.0-0ubuntu2 Architecture: amd64 CasperMD5CheckResult: unknown Date: Thu Jul 9 08:48:47 2026 InstallationDate: Installed on 2025-07-21 (353 days ago) InstallationMedia: Kubuntu 25.04 "Plucky Puffin" - Release amd64 (20250417) SourcePackage: ghostscript UpgradeStatus: Upgraded to resolute on 2026-04-28 (72 days ago) ** Affects: ghostscript (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug resolute wayland-session -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2160192 Title: apparmor policy too restrictive, add dsc extension to whitelist To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ghostscript/+bug/2160192/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
