mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #2777] How to automatically open PDF viewer firejailed when opening a pdf file? #1741
Labels
No labels
LTS merge
LTS merge
bug
bug
converted-to-discussion
doc-todo
documentation
duplicate
enhancement
file-transfer
firecfg
firejail-in-firejail
firetools
graphics
help wanted
information_old
installation
invalid
modif
moved
needinfo
networking
notabug
notourbug
old-version
overlayfs
packaging
profile-request
pull-request
question
question_old
removal
runtime-permissions
sandbox-ipc
security
stale
wiki
wiki
wontfix
wordpress
workaround
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/firejail#1741
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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?
@ghost commented on GitHub (Jun 15, 2019):
@spinnaker1 Firejail comes with a tool called
firecfgto automate things like this. It has its own manual page (man firecfg), but there's also more info in theDESKTOP INTEGRATIONsection 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
allthe currently supported programs at once). Hope this helps. Enjoy :)@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!