Skip to content

Commit 1d20cdc

Browse files
committed
Fix omxplayer on multi user envs.
1 parent 62ae555 commit 1d20cdc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

omxplayer

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ if [ -z $NOREFRESH ] || [ "$NOREFRESH" == "0" ]; then
4444
fi
4545

4646
DBUS_CMD="dbus-daemon --fork --print-address 5 --print-pid 6 --session"
47-
OMXPLAYER_DBUS_ADDR="/tmp/omxplayerdbus"
48-
OMXPLAYER_DBUS_PID="/tmp/omxplayerdbus.pid"
47+
OMXPLAYER_DBUS_ADDR="/tmp/omxplayerdbus.${USER}"
48+
OMXPLAYER_DBUS_PID="/tmp/omxplayerdbus.${USER}.pid"
4949

5050
if [ ! -s "$OMXPLAYER_DBUS_PID" ] || ! pgrep -f "$DBUS_CMD" -F "$OMXPLAYER_DBUS_PID" >/dev/null; then
5151
#echo "starting dbus for the first time" >&2

0 commit comments

Comments
 (0)