-
My system do not have cups, only cupslibs. most applications (outside of firejail) will show a "print to PDF" option as a "printer". Same application with default git profiles will not show such printer. Shows an empty printer list. Not sure what to allow on applications such as okular to enable that PDF printer. I only see alternative-etc for the non-existing dir /etc/cups. Not sure what else to enable. or even what is providing that printer in my system. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 14 replies
-
Basic debugging information is missing; please follow the bug report template: Also, if you run the following command: firejail --trace=trace.txt /usr/bin/okular $file And try to print the file, then close okular, what is the content of trace.txt? |
Beta Was this translation helpful? Give feedback.
-
You could try to comment options in okular.profile and try to pinpoint what's blocking that "print to PDF" option. That's always a bit time-consuming obviously. I'm not at all familiar with KDE, and I don't know what provides such a PDF printer option either. Based on the profile my first assumptions are we're either missing a command (in private-bin) and/or extra cups-related files from /usr/share are needed. Maybe the below can jump-start the search for the blocking/missing option(s): $ cat ~/.config/firejail/okular.local
whitelist /usr/share/cups
whitelist /usr/share/ppd
ignore private-bin
ignore private-etc Once we've established what's needed, we can try to undo the effects of loosening the sandbox with the ignore private-{bin,etc} suggestions. |
Beta Was this translation helpful? Give feedback.
-
The trace was more helpful than debug (apologies, at first I assumed it was just an option to save the same infro from So, besides learning okular calls stat on all my home files over and over for no good reason, and that it reads the mime files some hundred times each... the trace showed it needs access to ps2pdf on linux. this is the file on my .local file now (from my tests I believe it ADDs to the same value in okular.profile)
...I guess we can add this on a common-kde.inc file? Is there such file? Anything that prints in KDE will required it for the "to PDF" functionality. But it's also a exploit gateway as it deals with two of the worst file formats :) the
|
Beta Was this translation helpful? Give feedback.
-
Should be fixed by: |
Beta Was this translation helpful? Give feedback.
Should be fixed by: