| 1 |
# Firejail profile for ElectronMail |
| 2 |
# Description: Unofficial desktop app for the Proton Mail E2E encrypted email provider |
| 3 |
# This file is overwritten after every install/update |
| 4 |
# Persistent local customizations |
| 5 |
include electron-mail.local |
| 6 |
# Persistent global definitions |
| 7 |
include globals.local |
| 8 |
|
| 9 |
ignore dbus-user none |
| 10 |
ignore disable-mnt |
| 11 |
|
| 12 |
noblacklist ${HOME}/.config/electron-mail |
| 13 |
|
| 14 |
# sh is needed to allow Firefox to open links |
| 15 |
include allow-bin-sh.inc |
| 16 |
|
| 17 |
include disable-shell.inc |
| 18 |
|
| 19 |
mkdir ${HOME}/.config/electron-mail |
| 20 |
whitelist ${HOME}/.config/electron-mail |
| 21 |
whitelist /opt/ElectronMail |
| 22 |
|
| 23 |
# The lines below are needed to find the default Firefox profile name, to allow |
| 24 |
# opening links in an existing instance of Firefox (note that it still fails if |
| 25 |
# there isn't a Firefox instance running with the default profile; see #5352) |
| 26 |
noblacklist ${HOME}/.config/mozilla |
| 27 |
noblacklist ${HOME}/.mozilla |
| 28 |
whitelist ${HOME}/.config/mozilla/firefox/profiles.ini |
| 29 |
whitelist ${HOME}/.mozilla/firefox/profiles.ini |
| 30 |
|
| 31 |
machine-id |
| 32 |
nosound |
| 33 |
|
| 34 |
private-etc @tls-ca,@x11 |
| 35 |
|
| 36 |
dbus-user filter |
| 37 |
dbus-user.talk org.freedesktop.Notifications |
| 38 |
dbus-user.talk org.freedesktop.secrets |
| 39 |
dbus-user.talk org.gnome.keyring.SystemPrompter |
| 40 |
# Allow D-Bus communication with Firefox for opening links |
| 41 |
dbus-user.talk org.mozilla.* |
| 42 |
|
| 43 |
# Redirect |
| 44 |
include electron-common.profile |