#!/bin/sh
# mlink-x-session - the X session mlink-local-client starts: a window manager
# that keeps the client full-screen, then the client. The session ends when
# the client does.
command -v xset >/dev/null 2>&1 && { xset s off; xset -dpms; } 2>/dev/null
if command -v matchbox-window-manager >/dev/null 2>&1; then
    matchbox-window-manager -use_titlebar no -use_cursor yes &
fi
exec /opt/mlink/bin/mlink-client --host 127.0.0.1 "$@"
