#!/sbin/openrc-run description="Foot terminal server mode" supervisor=supervise-daemon command="/usr/bin/foot" command_args="--server" start_pre() { if [ -z "$WAYLAND_DISPLAY" ]; then eerror "\$WAYLAND_DISPLAY unset, can't proceed." eerror "A possible fix is to add rc_env_allow=WAYLAND_DISPLAY" eerror "to ~/.config/rc/rc.conf to avoid openrc filtering it out." return 1 fi }