#!/bin/sh
# greetd's default_session command. Installed to /usr/local/bin/kiosk-session.
set -eu

[ -r /etc/kitchen-display-agent/config.env ] && . /etc/kitchen-display-agent/config.env
export MQTT_BROKER_HOST PANTRY_WEB_URL PANTRY_VISION_URL PANTRY_VISION_TOKEN

export XDG_CURRENT_DESKTOP=sway
export XDG_SESSION_TYPE=wayland
export XDG_SESSION_DESKTOP=sway
export MOZ_ENABLE_WAYLAND=1
export OZONE_PLATFORM=wayland

: "${XDG_RUNTIME_DIR:=/run/user/$(id -u)}"
export XDG_RUNTIME_DIR

exec sway
