#!/bin/bash
unset ELECTRON_RUN_AS_NODE
SCRIPT_DIR="$(dirname "$(readlink -f "$0")")"
OZONE=()
if [ -n "${DISPLAY:-}" ]; then
  OZONE=(--ozone-platform=x11)
  for a in "$@"; do case "$a" in --ozone-platform*) OZONE=();; esac; done
fi
exec "$SCRIPT_DIR/vavus-desktop-bin" "${OZONE[@]}" "$@"
