#!/bin/bash # Wait for Wayland socket to be available echo "Waiting for Wayland display $WAYLAND_DISPLAY..." while [ ! -e "$XDG_RUNTIME_DIR/$WAYLAND_DISPLAY" ]; do sleep 1 done echo "Wayland display found. Starting API server..." # Start the Node.js API server exec node server.js