Skip to content

Instantly share code, notes, and snippets.

@glitsj16
Created September 13, 2023 13:50
Show Gist options
  • Save glitsj16/3a34f00fe7e74716e1965c25afa714eb to your computer and use it in GitHub Desktop.
Save glitsj16/3a34f00fe7e74716e1965c25afa714eb to your computer and use it in GitHub Desktop.
Firejail profile for beeper
# Firejail profile for beeper
# Description: All your chats in one app
# This file is overwritten after every install/update
# Persistent local customizations
include beeper.local
# Persistent global definitions
include globals.local
ignore dbus-user none
noblacklist ${HOME}/.config/Beeper
# sh is needed to allow Firefox to open links
include allow-bin-sh.inc
# Allow node (blacklisted by disable-interpreters.inc)
include allow-nodejs.inc
read-only /proc/sys/fs/inotify/max_user_watches
include disable-shell.inc
mkdir ${HOME}/.config/Beeper
whitelist ${HOME}/.config/Beeper
# The lines below are needed to find the default Firefox profile name, to allow
# opening links in an existing instance of Firefox (note that it still fails if
# there isn't a Firefox instance running with the default profile; see #5352)
noblacklist ${HOME}/.mozilla
whitelist ${HOME}/.mozilla/firefox/profiles.ini
machine-id
nosound
private-etc @tls-ca,@x11
private-opt beeper
dbus-user filter
dbus-user.talk org.freedesktop.Notifications
dbus-user.talk org.freedesktop.secrets
# allow D-Bus communication with firefox for opening links
dbus-user.talk org.mozilla.*
# Redirect
include electron-common.profile
blacklist ${HOME}/.config/Beeper
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment