mirror of
https://gitea.blesmrt.net/mikaela/scripts.git
synced 2024-11-19 09:29:39 +01:00
11 lines
248 B
Bash
Executable File
11 lines
248 B
Bash
Executable File
#!/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
|