#!/bin/bash su user if test -z "$DBUS_SESSION_BUS_ADDRESS" ; then eval `dbus-launch --sh-syntax` fi sleep 1 rm -rf /root/.config/pulse/ pulseaudio -D --exit-idle-time=-1 --disallow-exit sleep 2 pacmd load-module module-null-sink sink_name=MPVSink sleep 1 node main.js