summarylogtreecommitdiffstats
path: root/before-dawn.sh
diff options
context:
space:
mode:
authorzxp198210052023-11-16 18:26:12 +0800
committerzxp198210052023-11-16 18:26:12 +0800
commit767df07ad95841e40d3f27b1c99e53c62b78e4db (patch)
tree806635fbfe071b17f45654044f33564e7abb6c92 /before-dawn.sh
parentdebe129bb8f854f3e53d37a5ce5beb29dac877ac (diff)
downloadaur-767df07ad95841e40d3f27b1c99e53c62b78e4db.tar.gz
fix errors
Diffstat (limited to 'before-dawn.sh')
-rw-r--r--before-dawn.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/before-dawn.sh b/before-dawn.sh
index 43420b81211f..e5b73c086383 100644
--- a/before-dawn.sh
+++ b/before-dawn.sh
@@ -1,6 +1,9 @@
#!/bin/bash
_ELECTRON=/usr/bin/electron26
-_ASAR=/opt/before-dawn/resources/app.asar
+APPDIR="/usr/lib/before-dawn"
+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} "$@"
else