lib/Tools/node
author wenzelm
Sat, 15 Feb 2025 19:20:28 +0100
changeset 82185 cd96b972d5d3
parent 75285 2b64d5657592
permissions -rwxr-xr-x
more robust startup, notably on Ubuntu 24.04 with its strict policies on the "chrome-sandbox" executable;

#!/usr/bin/env bash
#
# Author: Makarius
#
# DESCRIPTION: run the Node.js framework within the Isabelle environment

if [ -z "$ISABELLE_VSCODIUM_ELECTRON" ]; then
  echo '*** Undefined $ISABELLE_VSCODIUM_ELECTRON: missing "vscodium" component'
  exit 2
else
  export ELECTRON_RUN_AS_NODE=1
  exec "$ISABELLE_VSCODIUM_ELECTRON" "$@"
fi