# mpv defaults for the kiosk user. Installed to
# /home/<KIOSK_USERNAME>/.config/mpv/mpv.conf by build-thin-client-iso.sh.
#
# The only reason this file exists is the IPC socket: /usr/local/bin/fullscreen-watcher
# queries mpv's `video-format` property over it to decide whether the now-playing
# widget may be shown. Without the socket the watcher falls back to "is there an mpv
# window in the sway tree", which is already correct for the normal case (mpv opens no
# window for audio-only files) — this just makes --force-window playback behave too.
#
# VERIFY: `~/` expansion in an mpv.conf value is documented behaviour but has not been
# checked on this image. If the socket never appears, replace the path below with the
# absolute one for the kiosk user.
input-ipc-server=~/.mpv-socket

# Nothing here loads mpv-mpris: Debian's mpv-mpris package drops its .so into mpv's
# autoload directory, and naming it again would load the plugin twice.
