Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

profiles: mpv: add XDG_CACHE_HOME & missing paths #5941

Merged
merged 3 commits into from
Aug 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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