Example, add this to the launcher, with pre-check if files exist:
#!/usr/bin/env bash
mkdir -p ${HOME}/.local/share/code-server/User
cat <<EOF > ${HOME}/.local/share/code-server/User/settings.json
{
"python.defaultInterpreterPath": "/opt/app-root/bin/python3"
}
EOF
mkdir -p ${HOME}/.vscode
cat <<EOF > ${HOME}/.vscode/settings.json
{
"python.defaultInterpreterPath": "/opt/app-root/bin/python3"
}
EOF
# VSCode Entrypoint
. /opt/app-root/bin/run-code-server.sh
Example, add this to the launcher, with pre-check if files exist: