| 1 |
# Firejail profile for linuxqq |
| 2 |
# Description: IM client based on Electron |
| 3 |
# This file is overwritten after every install/update |
| 4 |
# Persistent local customizations |
| 5 |
include linuxqq.local |
| 6 |
# Persistent global definitions |
| 7 |
include globals.local |
| 8 |
|
| 9 |
noblacklist ${HOME}/.config/QQ |
| 10 |
|
| 11 |
# sh is needed to allow Firefox to open links |
| 12 |
include allow-bin-sh.inc |
| 13 |
|
| 14 |
include disable-shell.inc |
| 15 |
|
| 16 |
# The lines below are needed to find the default Firefox profile name, to allow |
| 17 |
# opening links in an existing instance of Firefox (note that it still fails if |
| 18 |
# there isn't a Firefox instance running with the default profile; see #5352) |
| 19 |
noblacklist ${HOME}/.config/mozilla |
| 20 |
noblacklist ${HOME}/.mozilla |
| 21 |
whitelist ${HOME}/.config/mozilla/firefox/profiles.ini |
| 22 |
whitelist ${HOME}/.mozilla/firefox/profiles.ini |
| 23 |
|
| 24 |
mkdir ${HOME}/.config/QQ |
| 25 |
whitelist ${HOME}/.config/QQ |
| 26 |
whitelist ${DESKTOP} |
| 27 |
whitelist /opt/QQ |
| 28 |
|
| 29 |
ignore apparmor |
| 30 |
noprinters |
| 31 |
|
| 32 |
# If you don't need/want to save anything to disk you can add `private` to your linuxqq.local. |
| 33 |
#private |
| 34 |
private-etc @tls-ca,@x11,host.conf,os-release |
| 35 |
|
| 36 |
dbus-user filter |
| 37 |
dbus-user.talk org.freedesktop.Notifications |
| 38 |
dbus-user.talk org.freedesktop.portal.Desktop |
| 39 |
dbus-user.talk org.freedesktop.portal.Fcitx |
| 40 |
dbus-user.talk org.freedesktop.portal.IBus |
| 41 |
dbus-user.talk org.freedesktop.ScreenSaver |
| 42 |
dbus-user.talk org.gnome.Mutter.IdleMonitor |
| 43 |
?ALLOW_TRAY: dbus-user.talk org.kde.StatusNotifierWatcher |
| 44 |
# Allow D-Bus communication with Firefox for opening links |
| 45 |
dbus-user.talk org.mozilla.* |
| 46 |
ignore dbus-user none |
| 47 |
|
| 48 |
# Redirect |
| 49 |
include electron-common.profile |