#!/bin/bash
# Disable the Chromium sandbox before startup. On distros that restrict
# unprivileged user namespaces (Ubuntu 24.04+/Kubuntu) the SUID/userns sandbox
# aborts Chromium before the app's JS runs; ELECTRON_DISABLE_SANDBOX is read at
# C++ init and inherited by children + app.relaunch(), so it holds on the
# updater's relaunch too. (Setting it in-app via appendSwitch is too late.)
HERE="$(dirname "$(readlink -f "$0")")"
export ELECTRON_DISABLE_SANDBOX=1
exec "$HERE/restorm-bin.bin" "$@"
