Skip to content

Commit

Permalink
Merge pull request #189 from nmfs-opensci/eeholmes-patch-1
Browse files Browse the repository at this point in the history
Update desktop.sh
  • Loading branch information
eeholmes authored Nov 15, 2024
2 parents c94a0e3 + fd4d711 commit 22d9944
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,12 @@ RUN mkdir -p ${NB_PYTHON_PREFIX}/etc/jupyter/jupyter_server_config.d/ && \

# Set up the defaults for Desktop. Keep config in the base so doesn't trash user environment
ENV XDG_CONFIG_HOME=/etc/xdg/userconfig
RUN apt-get update && apt-get install -y xdg-user-dirs && rm -rf /var/lib/apt/lists/*
RUN mkdir -p /etc/xdg/userconfig && \
chown -R ${NB_USER}:${NB_USER} /etc/xdg/userconfig && \
chmod -R u+rwx,g+rwX,o+rX /etc/xdg/userconfig && \
chmod +x "${REPO_DIR}/desktop.sh" && \
"${REPO_DIR}/desktop.sh"
echo 'XDG_DESKTOP_DIR="/usr/share/Desktop"' > /etc/xdg/userconfig/user-dirs.defaults && \
xdg-user-dirs-update

# Set up the start command
USER ${NB_USER}
Expand Down
2 changes: 1 addition & 1 deletion desktop.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ mkdir -p "${DESKTOP_DIR}"
chown :staff /usr/share/Desktop
chmod 775 /usr/share/Desktop
# set the Desktop dir default for XDG
echo 'XDG_DESKTOP_DIR="${DESKTOP_DIR}"' > /etc/xdg/user-dirs.defaults
echo "XDG_DESKTOP_DIR=\"${DESKTOP_DIR}\"" > /etc/xdg/user-dirs.defaults

# The for loops will fail if they return null (no files). Set shell option nullglob
shopt -s nullglob
Expand Down

0 comments on commit 22d9944

Please sign in to comment.