bubblewrap-scripts/profiles/vlc

31 lines
986 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 \
--ro-bind-try "${@: -1}" "${@: -1}" \
2019-10-04 21:04:37 +02:00
--unsetenv DBUS_SESSION_BUS_ADDRESS \
2020-08-31 13:10:03 +02:00
--unshare-user-try \
2019-10-04 21:04:37 +02:00
--unshare-pid \
--unshare-net \
--unshare-uts \
2020-08-31 13:10:03 +02:00
--unshare-cgroup-try \
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