Skip to content

Commit

Permalink
Merge pull request #6545 from haplo/anki-mpv-lua
Browse files Browse the repository at this point in the history
profiles: anki: fix opening, allow media & add to firecfg
  • Loading branch information
kmk3 authored Nov 19, 2024
2 parents ffa95cc + c45e83e commit d3f6858
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
19 changes: 16 additions & 3 deletions etc/profile-a-l/anki.profile
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,19 @@ include anki.local
# Persistent global definitions
include globals.local

# Add the following to anki.local if you don't need media playing/recording
# (lua is needed by mpv):
#ignore include allow-lua.inc
#machine-id
#nosound

noblacklist ${DOCUMENTS}
noblacklist ${HOME}/.config/mpv
noblacklist ${HOME}/.local/share/Anki2
noblacklist ${HOME}/.mplayer

# Allow lua (blacklisted by disable-interpreters.inc)
include allow-lua.inc

# Allow python (blacklisted by disable-interpreters.inc)
include allow-python2.inc
Expand All @@ -23,21 +34,23 @@ include disable-xdg.inc

mkdir ${HOME}/.local/share/Anki2
whitelist ${DOCUMENTS}
whitelist ${HOME}/.config/mpv
whitelist ${HOME}/.local/share/Anki2
whitelist ${HOME}/.mplayer
include whitelist-common.inc
include whitelist-var-common.inc

apparmor
caps.drop all
machine-id
#machine-id
netfilter
no3d
nodvd
nogroups
noinput
nonewprivs
noroot
nosound
#nosound
notv
nou2f
novideo
Expand All @@ -46,7 +59,7 @@ protocol unix,inet,inet6
seccomp !chroot

disable-mnt
private-bin anki,python*
private-bin anki,mplayer,mpv,python*
private-cache
private-dev
private-etc @tls-ca,@x11
Expand Down
1 change: 1 addition & 0 deletions src/firecfg/firecfg.config
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ amule
amuled
android-studio
ani-cli
anki
anydesk
apktool
apostrophe
Expand Down

0 comments on commit d3f6858

Please sign in to comment.