diff options
Diffstat (limited to 'ctool-electron.sh')
-rw-r--r-- | ctool-electron.sh | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/ctool-electron.sh b/ctool-electron.sh index e01f25a4cbc0..33329d13e18d 100644 --- a/ctool-electron.sh +++ b/ctool-electron.sh @@ -1,8 +1,12 @@ #!/bin/bash _ELECTRON=/usr/bin/electron26 -_ASAR="/opt/ctool-electron/resources/.asar" +_ENV="env JSC_useDFGJIT=0" +APPDIR="/usr/lib/ctool-electron" +export PATH="${APPDIR}:${PATH}" +export LD_LIBRARY_PATH="${APPDIR}/swiftshader:${LD_LIBRARY_PATH}" +_ASAR="${APPDIR}/app.asar" if [[ $EUID -ne 0 ]] || [[ $ELECTRON_RUN_AS_NODE ]]; then - exec ${_ELECTRON} ${_ASAR} "$@" + exec ${_ENV} ${_ELECTRON} ${_ASAR} "$@" else - exec ${_ELECTRON} ${_ASAR} --no-sandbox "$@" + exec ${_ENV} ${_ELECTRON} ${_ASAR} --no-sandbox "$@" fi
\ No newline at end of file |