[GH-ISSUE #2777] How to automatically open PDF viewer firejailed when opening a pdf file? #1741

Closed
opened 2026-05-05 08:24:41 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @spinnaker1 on GitHub (Jun 15, 2019).
Original GitHub issue: https://github.com/netblue30/firejail/issues/2777

How to automatically open the PDF viewer program firejailed when opening (double clicking) a pdf file? Or at least prevent viewing the pdf non firejailed?

Originally created by @spinnaker1 on GitHub (Jun 15, 2019). Original GitHub issue: https://github.com/netblue30/firejail/issues/2777 How to automatically open the PDF viewer program firejailed when opening (double clicking) a pdf file? Or at least prevent viewing the pdf non firejailed?
gitea-mirror 2026-05-05 08:24:41 -06:00
Author
Owner

@ghost commented on GitHub (Jun 15, 2019):

@spinnaker1 Firejail comes with a tool called firecfg to automate things like this. It has its own manual page (man firecfg), but there's also more info in the DESKTOP INTEGRATION section of man firejail. Creating a symbolic link to /usr/bin/firejail under the name of your PDF viewer program in /usr/local/bin (or any other path that has precedence in your PATH) will start it in a firejail sandbox.

It's quite easy, just experiment a while and decide what works best for you. Either firejailing individual programs yourself via symlinks or using firecfg (which creates symlinks for all the currently supported programs at once). Hope this helps. Enjoy :)

<!-- gh-comment-id:502391606 --> @ghost commented on GitHub (Jun 15, 2019): @spinnaker1 Firejail comes with a tool called `firecfg` to automate things like this. It has its own manual page (man firecfg), but there's also more info in the `DESKTOP INTEGRATION` section of man firejail. Creating a symbolic link to /usr/bin/firejail under the name of your PDF viewer program in /usr/local/bin (or any other path that has precedence in your PATH) will start it in a firejail sandbox. It's quite easy, just experiment a while and decide what works best for you. Either firejailing individual programs yourself via symlinks or using firecfg (which creates symlinks for `all` the currently supported programs at once). Hope this helps. Enjoy :)
Author
Owner

@rusty-snake commented on GitHub (Jun 18, 2019):

@spinnaker1 since it seems like your questions were answered, I'll go ahead and close this. Feel free to re-open if you have more questions!

<!-- gh-comment-id:503006583 --> @rusty-snake commented on GitHub (Jun 18, 2019): @spinnaker1 since it seems like your questions were answered, I'll go ahead and close this. Feel free to re-open if you have more questions!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/firejail#1741
No description provided.