bubblewrap-scripts/profiles/vlc

27 lines
904 B
Plaintext
Raw Normal View History

2019-10-04 21:04:37 +02:00
#!/usr/bin/env bash
set -euo pipefail
(
exec bwrap \
2020-08-31 13:10:03 +02:00
--ro-bind /usr/bin/vlc /usr/bin/vlc \
2019-10-04 21:04:37 +02:00
--ro-bind /usr/share /usr/share \
--ro-bind /usr/lib /usr/lib \
--ro-bind /usr/lib64 /usr/lib64 \
--symlink /usr/lib64 /lib64 \
--symlink /usr/bin /bin \
--proc /proc \
2022-11-22 06:07:13 +01:00
--ro-bind /run/user/"$(id -u)"/"$WAYLAND_DISPLAY" /run/user/"$(id -u)"/"$WAYLAND_DISPLAY" \
2022-09-15 21:52:25 +02:00
--ro-bind-try /run/user/"$(id -u)"/pipewire-0 /run/user/"$(id -u)"/pipewire-0 \
2019-10-04 21:04:37 +02:00
--ro-bind /etc /etc \
2022-11-22 06:07:13 +01:00
--ro-bind-try ~/.config/vlc ~/.config/vlc \
2022-11-24 08:49:26 +01:00
--ro-bind-try "${@: -1}" "$(realpath "${@: -1}")" \
2019-10-04 21:04:37 +02:00
--unsetenv DBUS_SESSION_BUS_ADDRESS \
2022-11-25 08:03:56 +01:00
--unshare-all \
2019-10-04 21:04:37 +02:00
--new-session \
--seccomp 10 \
10< /usr/local/bin/seccomp_default_filter.bpf \
2022-11-22 06:07:13 +01:00
/usr/bin/vlc "$@"
2019-10-04 21:04:37 +02:00
)
2020-08-31 13:10:03 +02:00
2022-09-15 21:52:25 +02:00
## requires qt5-wayland to run on wayland
2022-11-22 06:07:13 +01:00
## wayland support in vlc is currently still under development