diff --git a/jupyterhub/base/Dockerfile b/jupyterhub/base/Dockerfile
index 251cbfb458275c31ee208603fc4a7751408b5481..41b1ca9686ecf99984fb90afe5a389cccb0a5179 100755
--- a/jupyterhub/base/Dockerfile
+++ b/jupyterhub/base/Dockerfile
@@ -47,6 +47,7 @@ ENV JUPYTER_CONFIG_DIR=/usr/local/etc/jupyter
 COPY jupyter_notebook_config.py ${JUPYTER_CONFIG_DIR}/
 ENV JUPYTERLAB_SETTINGS_DIR=/root/.config/jupyter/lab/user-settings
 ENV JUPYTERLAB_WORKSPACES_DIR=/root/.config/jupyter/lab/workspaces
+ENV XDG_DATA_HOME=/usr/local/share
 
 RUN mkdir -p /usr/local/venv && \
     python${PYTHON_VERSION} -m venv /usr/local/venv/default && \
diff --git a/jupyterhub/base/jupyter_notebook_config.py b/jupyterhub/base/jupyter_notebook_config.py
index 41f1d145c90359cc17f5e363272ab13ef6e7bb02..3a2a84764a92ab9b6b3e8f39b86071b47d854f6e 100755
--- a/jupyterhub/base/jupyter_notebook_config.py
+++ b/jupyterhub/base/jupyter_notebook_config.py
@@ -2,4 +2,3 @@ c.NotebookApp.allow_root = True
 c.NotebookApp.terminado_settings = {"shell_command": ["/bin/bash", "-l"]}
 c.MultiKernelManager.default_kernel_name = "default"
 c.NotebookApp.notebook_dir = "/root"
-c.Session.debug = True