Skip to content

Commit

Permalink
profiles: anki: fix dark mode detection & misc changes
Browse files Browse the repository at this point in the history
  • Loading branch information
amano-kenji committed Dec 28, 2024
1 parent afce467 commit a71b501
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions etc/profile-a-l/anki.profile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ noblacklist ${HOME}/.config/mpv
noblacklist ${HOME}/.local/share/Anki2
noblacklist ${HOME}/.mplayer

# sh and dbus-send are used by aqt/theme.py to query dark mode through org.freedesktop.portal.Desktop
# Allow /bin/sh (blacklisted by disable-shell.inc)
include allow-bin-sh.inc
# Allow lua (blacklisted by disable-interpreters.inc)
include allow-lua.inc

Expand Down Expand Up @@ -57,15 +60,22 @@ novideo
protocol unix,inet,inet6
# QtWebengine needs chroot to set up its own sandbox
seccomp !chroot
seccomp.block-secondary

disable-mnt
private-bin anki,mplayer,mpv,python*
# env is required for python scripts on gentoo linux
# anki uses mpv or mplayer for playing audio and uses lame to record audio.
# sh and dbus-send are used by aqt/theme.py to query dark mode through org.freedesktop.portal.Desktop
private-bin anki,dbus-send,env,lame,lua*,mplayer,mpv,python*,sh
private-cache
private-dev
private-etc @tls-ca,@x11
private-tmp

dbus-user none
dbus-user filter
# org.freedesktop.portal.Desktop is queried for dark mode.
dbus-user.talk org.freedesktop.portal.Desktop
dbus-system none

deterministic-shutdown
#restrict-namespaces

0 comments on commit a71b501

Please sign in to comment.