From 99898db8fc47b951ba0e8efdc61299be72aaa3c6 Mon Sep 17 00:00:00 2001 From: pirate486743186 <> Date: Sun, 16 Apr 2023 00:06:28 +0200 Subject: youtube-viewers: refactor and add gtk-youtube-viewers-common --- etc/profile-m-z/pipe-viewer.profile | 2 +- etc/profile-m-z/straw-viewer.profile | 2 +- etc/profile-m-z/youtube-viewer.profile | 2 +- etc/profile-m-z/youtube-viewers-common.profile | 15 ++++----------- 4 files changed, 7 insertions(+), 14 deletions(-) (limited to 'etc/profile-m-z') diff --git a/etc/profile-m-z/pipe-viewer.profile b/etc/profile-m-z/pipe-viewer.profile index 3de064311..77393274e 100644 --- a/etc/profile-m-z/pipe-viewer.profile +++ b/etc/profile-m-z/pipe-viewer.profile @@ -15,7 +15,7 @@ mkdir ${HOME}/.cache/pipe-viewer whitelist ${HOME}/.cache/pipe-viewer whitelist ${HOME}/.config/pipe-viewer -private-bin gtk-pipe-viewer,pipe-viewer +private-bin pipe-viewer # Redirect include youtube-viewers-common.profile diff --git a/etc/profile-m-z/straw-viewer.profile b/etc/profile-m-z/straw-viewer.profile index 513abc21b..48f83fabc 100644 --- a/etc/profile-m-z/straw-viewer.profile +++ b/etc/profile-m-z/straw-viewer.profile @@ -15,7 +15,7 @@ mkdir ${HOME}/.cache/straw-viewer whitelist ${HOME}/.cache/straw-viewer whitelist ${HOME}/.config/straw-viewer -private-bin gtk-straw-viewer,straw-viewer +private-bin straw-viewer # Redirect include youtube-viewers-common.profile diff --git a/etc/profile-m-z/youtube-viewer.profile b/etc/profile-m-z/youtube-viewer.profile index 825599fcc..4a0e26540 100644 --- a/etc/profile-m-z/youtube-viewer.profile +++ b/etc/profile-m-z/youtube-viewer.profile @@ -15,7 +15,7 @@ mkdir ${HOME}/.config/youtube-viewer whitelist ${HOME}/.cache/youtube-viewer whitelist ${HOME}/.config/youtube-viewer -private-bin gtk-youtube-viewer,gtk2-youtube-viewer,gtk3-youtube-viewer,youtube-viewer +private-bin youtube-viewer # Redirect include youtube-viewers-common.profile diff --git a/etc/profile-m-z/youtube-viewers-common.profile b/etc/profile-m-z/youtube-viewers-common.profile index d2b73ec4c..c9d2ea53b 100644 --- a/etc/profile-m-z/youtube-viewers-common.profile +++ b/etc/profile-m-z/youtube-viewers-common.profile @@ -8,6 +8,7 @@ include youtube-viewers-common.local #include globals.local noblacklist ${HOME}/.cache/youtube-dl +noblacklist ${HOME}/.config/mpv # Allow lua (blacklisted by disable-interpreters.inc) include allow-lua.inc @@ -19,12 +20,6 @@ include allow-perl.inc include allow-python2.inc include allow-python3.inc -# The lines below are needed to find the default Firefox profile name, to allow -# opening links in an existing instance of Firefox (note that it still fails if -# there isn't a Firefox instance running with the default profile; see #5352) -noblacklist ${HOME}/.mozilla -whitelist ${HOME}/.mozilla/firefox/profiles.ini - include disable-common.inc include disable-devel.inc include disable-exec.inc @@ -34,7 +29,9 @@ include disable-xdg.inc whitelist ${DOWNLOADS} whitelist ${HOME}/.cache/youtube-dl/youtube-sigfuncs +whitelist ${HOME}/.config/mpv include whitelist-common.inc +include whitelist-run-common.inc include whitelist-runuser-common.inc include whitelist-usr-share-common.inc include whitelist-var-common.inc @@ -55,16 +52,12 @@ seccomp tracelog disable-mnt -private-bin bash,ffmpeg,ffprobe,firefox,mpv,perl,python*,sh,smplayer,stty,wget,wget2,which,xterm,youtube-dl,yt-dlp +private-bin bash,ffmpeg,ffprobe,mpv,perl,python*,sh,smplayer,stty,wget,wget2,which,youtube-dl,yt-dlp private-cache private-dev private-etc @tls-ca,@x11,host.conf,mime.types private-tmp -dbus-user filter -# allow D-Bus communication with firefox for opening links -dbus-user.talk org.mozilla.* - dbus-system none restrict-namespaces -- cgit v1.2.3-70-g09d2