diff options
Diffstat (limited to 'build-jupyterlab.sh')
| -rwxr-xr-x | build-jupyterlab.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/build-jupyterlab.sh b/build-jupyterlab.sh index 66f3423..6aa0def 100755 --- a/build-jupyterlab.sh +++ b/build-jupyterlab.sh @@ -168,6 +168,11 @@ cat > "${APPDIR}/AppRun" << 'APPRUN_EOF' SELF="$(readlink -f "$0")" HERE="$(dirname "$SELF")" CONDA="${HERE}/usr/lib/miniforge" +_user_shell="$(awk -F: -v uid="$(id -u 2>/dev/null || echo '')" '$3==uid{print $7; exit}' /etc/passwd 2>/dev/null)" +[ -x "$_user_shell" ] || _user_shell="${SHELL:-}" +[ -x "$_user_shell" ] || _user_shell="/bin/bash" +[ -x "$_user_shell" ] || _user_shell="/bin/sh" +export SHELL="$_user_shell" export PYTHONHOME="${CONDA}" export PATH="${CONDA}/bin:${PATH}" export TERMINFO_DIRS="${CONDA}/share/terminfo:/usr/share/terminfo:/lib/terminfo:/etc/terminfo" |
