#!/bin/bash
# OldOrbit launcher: without a setuid chrome-sandbox (tar.gz installs have none) Chromium's sandbox
# cannot start on many distributions, so it runs with --no-sandbox then.
DIR="$(cd "$(dirname "$(readlink -f "$0")")" && pwd)"
SB="$DIR/chrome-sandbox"
if [ -u "$SB" ] && [ "$(stat -c %u "$SB")" = "0" ]; then exec "$DIR/oldorbit-bin" "$@"; fi
exec "$DIR/oldorbit-bin" --no-sandbox "$@"
