diff options
Diffstat (limited to 'thoughts.sh')
-rw-r--r-- | thoughts.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/thoughts.sh b/thoughts.sh index 699c3b540a84..5999c4080fd2 100644 --- a/thoughts.sh +++ b/thoughts.sh @@ -1,6 +1,8 @@ #!/bin/bash +APPDIR="/opt/thoughts" +export LD_LIBRARY_PATH="${APPDIR}/usr/lib:${LD_LIBRARY_PATH}" _ELECTRON=/usr/bin/electron -_ASAR="/opt/thoughts/thoughts.asar" +_ASAR="${APPDIR}/resources/app.asar" if [[ $EUID -ne 0 ]] || [[ $ELECTRON_RUN_AS_NODE ]]; then exec ${_ELECTRON} ${_ASAR} "$@" else |