diff --git a/bash/usr-local-bin/vlc-snap b/bash/usr-local-bin/vlc-snap new file mode 100755 index 0000000..389aaa6 --- /dev/null +++ b/bash/usr-local-bin/vlc-snap @@ -0,0 +1,10 @@ +#!/usr/bin/env bash +set -x +if [ -f /snap/bin/vlc ]; then + # https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1951491/comments/105 + export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u)/bus + snap run vlc $@ +else + /usr/bin/vlc +fi +set +x