mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #905] Opening links in external applications under firejailed Firefox #612
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#612
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 @fld on GitHub (Nov 10, 2016).
Original GitHub issue: https://github.com/netblue30/firejail/issues/905
When dealing with .pdf and .torrent links, I like to use Firefoxes "Open with ..."-feature for opening such files in qpdfview/okular and deluge, respectively.
After some head scratching, I was able to make qpdfview/okular work properly when opened via firefox with this:
Both viewers now open with correct configuration. For some reason, I had to use both "whitelist" and "noblacklist" and they had to be place above the "include ...firefox.profile" to make things work...
--
Getting .torrent-files to open with Deluge, was a much tougher nut to crack.. because usually the Deluge GUI is already running outside of the Firefoxes firejail-container (possibly in a jail of its own)
For starters, I added
whitelist ~/.config/delugeto ~/.config/firejail/firefox.profile, but that alone wasn't enough, because Firefox still needs access to the already running Deluge. One way to do that is to run Deluge with:firejail --join=firefox deluge, but this has the drawbacks that Firefox has to already be running when you are starting Deluge and it would essentially be running under Firefoxes profile rather than Deluges profile.Then I noticed the "--ipc-namespace="-option, which would allow me to start deluge under firefox ipc-namespace, even before firefox jail is started!
Start deluge
% firejail --ipc-namespace=firefox delugeOpen a .torrent with firejailed firefox
% firejail firefox --no-remote http://....torrentDeluge says:
[ERROR ] 12:16:40 ipcinterface:217 No such file: /tmp/mozilla_fld0/tails-i386-2.6.torrentSo finally, this works:
% firejail --ipc-namespace=firefox --whitelist=/tmp/mozilla_fld0 delugeI don't like how the tmp/ sub-directory name has to be added in such a static fashion, but I can't think of a way around it?
@fld commented on GitHub (Nov 10, 2016):
As I was making my deluge.profile I noticed that the --ipc-namespace doesn't actually take any parameters. Here is what I'm using now:
~/.config/firejail/deluge.profile:
~/.config/firejail/firefox.profile:
@netblue30 commented on GitHub (Nov 12, 2016):
I have all of them in mainline git, thanks.