Skip to content

Commit

Permalink
Merge pull request #5941 from kmk3/mpv-add-cache
Browse files Browse the repository at this point in the history
mpv.profile: add XDG_CACHE_HOME & missing paths
  • Loading branch information
kmk3 authored Aug 6, 2023
2 parents 5e0f35b + d765b69 commit fb39e08
Show file tree
Hide file tree
Showing 10 changed files with 30 additions and 4 deletions.
1 change: 1 addition & 0 deletions etc/inc/disable-programs.inc
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ blacklist ${HOME}/.cache/mirage
blacklist ${HOME}/.cache/moonchild productions/basilisk
blacklist ${HOME}/.cache/moonchild productions/pale moon
blacklist ${HOME}/.cache/mozilla
blacklist ${HOME}/.cache/mpv
blacklist ${HOME}/.cache/ms-excel-online
blacklist ${HOME}/.cache/ms-office-online
blacklist ${HOME}/.cache/ms-onenote-online
Expand Down
2 changes: 2 additions & 0 deletions etc/profile-a-l/chatterino.profile
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,13 @@ include globals.local
#whitelist ${MUSIC}

# Also allow access to mpv/vlc, they're usable via streamlink.
noblacklist ${HOME}/.cache/mpv
noblacklist ${HOME}/.config/mpv
noblacklist ${HOME}/.config/pulse
noblacklist ${HOME}/.config/vlc
noblacklist ${HOME}/.local/share/chatterino
noblacklist ${HOME}/.local/share/vlc
noblacklist ${HOME}/.local/state/mpv

# Allow Lua for mpv (blacklisted by disable-interpreters.inc)
include allow-lua.inc
Expand Down
4 changes: 4 additions & 0 deletions etc/profile-a-l/firefox-common-addons.profile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ ignore include whitelist-runuser-common.inc

ignore private-cache

noblacklist ${HOME}/.cache/mpv
noblacklist ${HOME}/.cache/youtube-dl
noblacklist ${HOME}/.config/kgetrc
noblacklist ${HOME}/.config/mpv
Expand All @@ -32,9 +33,11 @@ noblacklist ${HOME}/.local/share/kget
noblacklist ${HOME}/.local/share/kxmlgui5/okular
noblacklist ${HOME}/.local/share/okular
noblacklist ${HOME}/.local/share/qpdfview
noblacklist ${HOME}/.local/state/mpv
noblacklist ${HOME}/.netrc

whitelist ${HOME}/.cache/gnome-mplayer/plugin
whitelist ${HOME}/.cache/mpv
whitelist ${HOME}/.cache/youtube-dl/youtube-sigfuncs
whitelist ${HOME}/.config/gnome-mplayer
whitelist ${HOME}/.config/kgetrc
Expand Down Expand Up @@ -62,6 +65,7 @@ whitelist ${HOME}/.local/share/kxmlgui5/okular
whitelist ${HOME}/.local/share/okular
whitelist ${HOME}/.local/share/qpdfview
whitelist ${HOME}/.local/share/tridactyl
whitelist ${HOME}/.local/state/mpv
whitelist ${HOME}/.netrc
whitelist ${HOME}/.pentadactyl
whitelist ${HOME}/.pentadactylrc
Expand Down
4 changes: 4 additions & 0 deletions etc/profile-m-z/QMediathekView.profile
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,15 @@ include globals.local
noblacklist ${HOME}/.config/QMediathekView
noblacklist ${HOME}/.local/share/QMediathekView

noblacklist ${HOME}/.cache/mpv
noblacklist ${HOME}/.config/mpv
noblacklist ${HOME}/.config/smplayer
noblacklist ${HOME}/.config/totem
noblacklist ${HOME}/.config/vlc
noblacklist ${HOME}/.config/xplayer
noblacklist ${HOME}/.local/share/totem
noblacklist ${HOME}/.local/share/xplayer
noblacklist ${HOME}/.local/state/mpv
noblacklist ${HOME}/.mplayer
noblacklist ${VIDEOS}

Expand All @@ -35,13 +37,15 @@ whitelist ${HOME}/.local/share/QMediathekView
whitelist ${DOWNLOADS}
whitelist ${VIDEOS}

whitelist ${HOME}/.cache/mpv
whitelist ${HOME}/.config/mpv
whitelist ${HOME}/.config/smplayer
whitelist ${HOME}/.config/totem
whitelist ${HOME}/.config/vlc
whitelist ${HOME}/.config/xplayer
whitelist ${HOME}/.local/share/totem
whitelist ${HOME}/.local/share/xplayer
whitelist ${HOME}/.local/state/mpv
whitelist ${HOME}/.mplayer
whitelist /usr/share/qtchooser
include whitelist-common.inc
Expand Down
2 changes: 2 additions & 0 deletions etc/profile-m-z/mediathekview.profile
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@ include mediathekview.local
# Persistent global definitions
include globals.local

noblacklist ${HOME}/.cache/mpv
noblacklist ${HOME}/.config/mpv
noblacklist ${HOME}/.config/smplayer
noblacklist ${HOME}/.config/totem
noblacklist ${HOME}/.config/vlc
noblacklist ${HOME}/.config/xplayer
noblacklist ${HOME}/.local/share/totem
noblacklist ${HOME}/.local/share/xplayer
noblacklist ${HOME}/.local/state/mpv
noblacklist ${HOME}/.mediathek3
noblacklist ${HOME}/.mplayer
noblacklist ${VIDEOS}
Expand Down
6 changes: 4 additions & 2 deletions etc/profile-m-z/mpsyt.profile
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ include mpsyt.local
# Persistent global definitions
include globals.local

noblacklist ${HOME}/.cache/mpv
noblacklist ${HOME}/.config/mps-youtube
noblacklist ${HOME}/.config/mpv
noblacklist ${HOME}/.config/youtube-dl
noblacklist ${HOME}/.local/state/mpv
noblacklist ${HOME}/.mplayer
noblacklist ${HOME}/.netrc
noblacklist ${HOME}/mps
Expand All @@ -32,13 +34,13 @@ include disable-shell.inc
include disable-xdg.inc

mkdir ${HOME}/.config/mps-youtube
mkdir ${HOME}/.config/mpv
mkdir ${HOME}/.config/youtube-dl
mkdir ${HOME}/.mplayer
mkdir ${HOME}/mps
whitelist ${HOME}/.cache/mpv
whitelist ${HOME}/.config/mps-youtube
whitelist ${HOME}/.config/mpv
whitelist ${HOME}/.config/youtube-dl
whitelist ${HOME}/.local/state/mpv
whitelist ${HOME}/.mplayer
whitelist ${HOME}/.netrc
whitelist ${HOME}/mps
Expand Down
3 changes: 3 additions & 0 deletions etc/profile-m-z/mpv.profile
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ include globals.local
#include allow-bin-sh.inc
#private-bin sh

noblacklist ${HOME}/.cache/mpv
noblacklist ${HOME}/.config/mpv
noblacklist ${HOME}/.config/youtube-dl
noblacklist ${HOME}/.config/yt-dlp
Expand All @@ -50,9 +51,11 @@ include disable-programs.inc
include disable-shell.inc

read-only ${DESKTOP}
mkdir ${HOME}/.cache/mpv
mkdir ${HOME}/.config/mpv
mkdir ${HOME}/.local/state/mpv
mkfile ${HOME}/.netrc
whitelist ${HOME}/.cache/mpv
whitelist ${HOME}/.config/mpv
whitelist ${HOME}/.config/youtube-dl
whitelist ${HOME}/.config/yt-dlp
Expand Down
4 changes: 4 additions & 0 deletions etc/profile-m-z/rtv-addons.profile
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,17 @@ ignore nosound
ignore private-bin
ignore dbus-user none

noblacklist ${HOME}/.cache/mpv
noblacklist ${HOME}/.config/mpv
noblacklist ${HOME}/.local/state/mpv
noblacklist ${HOME}/.mailcap
noblacklist ${HOME}/.netrc
noblacklist ${HOME}/.w3m

whitelist ${HOME}/.cache/mpv
whitelist ${HOME}/.cache/youtube-dl/youtube-sigfuncs
whitelist ${HOME}/.config/mpv
whitelist ${HOME}/.local/state/mpv
whitelist ${HOME}/.mailcap
whitelist ${HOME}/.netrc
whitelist ${HOME}/.w3m
Expand Down
6 changes: 4 additions & 2 deletions etc/profile-m-z/smtube.profile
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@ include smtube.local
# Persistent global definitions
include globals.local

noblacklist ${HOME}/.cache/mpv
noblacklist ${HOME}/.config/mpv
noblacklist ${HOME}/.config/smplayer
noblacklist ${HOME}/.config/smtube
noblacklist ${HOME}/.config/mpv
noblacklist ${HOME}/.mplayer
noblacklist ${HOME}/.config/vlc
noblacklist ${HOME}/.local/share/vlc
noblacklist ${HOME}/.local/state/mpv
noblacklist ${HOME}/.mplayer
noblacklist ${MUSIC}
noblacklist ${VIDEOS}

Expand Down
2 changes: 2 additions & 0 deletions etc/profile-m-z/youtube-viewers-common.profile
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@ include youtube-viewers-common.local
# added by caller profile
#include globals.local

noblacklist ${HOME}/.cache/mpv
noblacklist ${HOME}/.cache/youtube-dl
noblacklist ${HOME}/.config/mpv
noblacklist ${HOME}/.local/state/mpv

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

0 comments on commit fb39e08

Please sign in to comment.