From 827ddfdd9200eeccc2aaee3b46f2b3b46aa1370b Mon Sep 17 00:00:00 2001 From: "Kelvin M. Klann" Date: Thu, 9 Dec 2021 00:28:07 -0300 Subject: disable-programs.inc: blacklist missing yt-dlp paths This amends commit d6ca41c19 ("update mpv.profile", 2021-10-24) / PR #4634. These paths were taken from yt-dlp(1). They are used since yt-dlp commit e2e43aea2 ("Portable Configuration file (closes #19)", 2021-01-16)[1]. Environment: yt-dlp 2021.12.01-1 on Artix Linux. Relates to: https://github.com/yt-dlp/yt-dlp/issues/19 [1] https://github.com/yt-dlp/yt-dlp/commit/e2e43aea2159a235e151f56bd14383129a6b4355 --- etc/inc/disable-programs.inc | 2 ++ etc/profile-m-z/yt-dlp.profile | 2 ++ 2 files changed, 4 insertions(+) (limited to 'etc') diff --git a/etc/inc/disable-programs.inc b/etc/inc/disable-programs.inc index 5932481f7..55ee15256 100644 --- a/etc/inc/disable-programs.inc +++ b/etc/inc/disable-programs.inc @@ -637,6 +637,7 @@ blacklist ${HOME}/.config/youtube-music-desktop-app blacklist ${HOME}/.config/youtube-viewer blacklist ${HOME}/.config/youtubemusic-nativefier-040164 blacklist ${HOME}/.config/yt-dlp +blacklist ${HOME}/.config/yt-dlp.conf blacklist ${HOME}/.config/zathura blacklist ${HOME}/.config/zim blacklist ${HOME}/.config/zoomus.conf @@ -1128,6 +1129,7 @@ blacklist ${HOME}/mps blacklist ${HOME}/openstego.ini blacklist ${HOME}/wallet.dat blacklist ${HOME}/yt-dlp.conf +blacklist ${HOME}/yt-dlp.conf.txt blacklist ${RUNUSER}/*firefox* blacklist /tmp/.wine-* blacklist /tmp/akonadi-* diff --git a/etc/profile-m-z/yt-dlp.profile b/etc/profile-m-z/yt-dlp.profile index 32e873aa5..6e835b03f 100644 --- a/etc/profile-m-z/yt-dlp.profile +++ b/etc/profile-m-z/yt-dlp.profile @@ -10,7 +10,9 @@ include yt-dlp.local noblacklist ${HOME}/.cache/yt-dlp noblacklist ${HOME}/.config/yt-dlp +noblacklist ${HOME}/.config/yt-dlp.conf noblacklist ${HOME}/yt-dlp.conf +noblacklist ${HOME}/yt-dlp.conf.txt private-bin ffprobe,yt-dlp private-etc alternatives,ld.so.cache,ld.so.preload,yt-dlp.conf -- cgit v1.2.3-54-g00ecf From b10244babaf8b0ba2be3e73d80b09b4723c17fe7 Mon Sep 17 00:00:00 2001 From: "Kelvin M. Klann" Date: Thu, 9 Dec 2021 00:02:29 -0300 Subject: mpv.profile: stop creating youtube-dl config dir If it does not already exist, mpv is unlikely to need or to create it, so just whitelist it if it exists. This amends commit 5d741795c ("Use whitelisting for video players (#3472)", 2020-08-15). --- etc/profile-m-z/mpv.profile | 1 - 1 file changed, 1 deletion(-) (limited to 'etc') diff --git a/etc/profile-m-z/mpv.profile b/etc/profile-m-z/mpv.profile index e6faba78a..cb3e47f81 100644 --- a/etc/profile-m-z/mpv.profile +++ b/etc/profile-m-z/mpv.profile @@ -46,7 +46,6 @@ include disable-shell.inc read-only ${DESKTOP} mkdir ${HOME}/.config/mpv -mkdir ${HOME}/.config/youtube-dl mkfile ${HOME}/.netrc whitelist ${HOME}/.config/mpv whitelist ${HOME}/.config/youtube-dl -- cgit v1.2.3-54-g00ecf From fb3eca9d29da64a3bfb8ea99c216590fba84c0c5 Mon Sep 17 00:00:00 2001 From: "Kelvin M. Klann" Date: Thu, 9 Dec 2021 00:10:04 -0300 Subject: mpv.profile: sort whitelist --- etc/profile-m-z/mpv.profile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'etc') diff --git a/etc/profile-m-z/mpv.profile b/etc/profile-m-z/mpv.profile index cb3e47f81..7caa72aa8 100644 --- a/etc/profile-m-z/mpv.profile +++ b/etc/profile-m-z/mpv.profile @@ -50,11 +50,11 @@ mkfile ${HOME}/.netrc whitelist ${HOME}/.config/mpv whitelist ${HOME}/.config/youtube-dl whitelist ${HOME}/.netrc -include whitelist-common.inc -include whitelist-player-common.inc whitelist /usr/share/lua whitelist /usr/share/lua* whitelist /usr/share/vulkan +include whitelist-common.inc +include whitelist-player-common.inc include whitelist-usr-share-common.inc include whitelist-var-common.inc -- cgit v1.2.3-54-g00ecf From d1894e62c31f2a98f9a765235e920caaace08701 Mon Sep 17 00:00:00 2001 From: "Kelvin M. Klann" Date: Thu, 9 Dec 2021 00:10:15 -0300 Subject: mpv.profile: whitelist paths for yt-dlp See etc/profile-m-z/yt-dlp.profile. Relates to commit d6ca41c19 ("update mpv.profile", 2021-10-24) / PR #4634. Fixes #4754. --- etc/profile-m-z/mpv.profile | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'etc') diff --git a/etc/profile-m-z/mpv.profile b/etc/profile-m-z/mpv.profile index 7caa72aa8..e58beec0c 100644 --- a/etc/profile-m-z/mpv.profile +++ b/etc/profile-m-z/mpv.profile @@ -26,7 +26,11 @@ include globals.local noblacklist ${HOME}/.config/mpv noblacklist ${HOME}/.config/youtube-dl +noblacklist ${HOME}/.config/yt-dlp +noblacklist ${HOME}/.config/yt-dlp.conf noblacklist ${HOME}/.netrc +noblacklist ${HOME}/yt-dlp.conf +noblacklist ${HOME}/yt-dlp.conf.txt # Allow lua (blacklisted by disable-interpreters.inc) include allow-lua.inc @@ -49,7 +53,11 @@ mkdir ${HOME}/.config/mpv mkfile ${HOME}/.netrc whitelist ${HOME}/.config/mpv whitelist ${HOME}/.config/youtube-dl +whitelist ${HOME}/.config/yt-dlp +whitelist ${HOME}/.config/yt-dlp.conf whitelist ${HOME}/.netrc +whitelist ${HOME}/yt-dlp.conf +whitelist ${HOME}/yt-dlp.conf.txt whitelist /usr/share/lua whitelist /usr/share/lua* whitelist /usr/share/vulkan -- cgit v1.2.3-54-g00ecf