From 1d20cdc1be62ab7beecc1a2b1bfd8c3fb02b22cc Mon Sep 17 00:00:00 2001 From: Sergio Conde Date: Mon, 1 Sep 2014 10:19:50 +0200 Subject: [PATCH] Fix omxplayer on multi user envs. --- omxplayer | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/omxplayer b/omxplayer index d89283a1..505b0f37 100755 --- a/omxplayer +++ b/omxplayer @@ -44,8 +44,8 @@ if [ -z $NOREFRESH ] || [ "$NOREFRESH" == "0" ]; then fi DBUS_CMD="dbus-daemon --fork --print-address 5 --print-pid 6 --session" -OMXPLAYER_DBUS_ADDR="/tmp/omxplayerdbus" -OMXPLAYER_DBUS_PID="/tmp/omxplayerdbus.pid" +OMXPLAYER_DBUS_ADDR="/tmp/omxplayerdbus.${USER}" +OMXPLAYER_DBUS_PID="/tmp/omxplayerdbus.${USER}.pid" if [ ! -s "$OMXPLAYER_DBUS_PID" ] || ! pgrep -f "$DBUS_CMD" -F "$OMXPLAYER_DBUS_PID" >/dev/null; then #echo "starting dbus for the first time" >&2