Skip to content

Commit ae139ca

Browse files
authored
Merge pull request #73 from nmfs-opensci/main
update from main
2 parents d5f546f + 684397c commit ae139ca

File tree

5 files changed

+18
-4
lines changed

5 files changed

+18
-4
lines changed

Desktop/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
This is a folder Desktop apps files: .desktop, .xml, .png

appendix

+4
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,9 @@ RUN yes | unminimize
2626
ENV MANPATH="${NB_PYTHON_PREFIX}/share/man:${MANPATH}"
2727
RUN mandb
2828

29+
# Copy Desktop files into ${REPO_DIR}/Desktop if they exist
30+
ONBUILD RUN mkdir -p ${REPO_DIR}/Desktop && \
31+
if [ -d Desktop ]; then cp Desktop/* ${REPO_DIR}/Desktop/; fi
32+
2933
# Revert to default user
3034
USER ${NB_USER}

mime/README.md

-1
This file was deleted.

rocker.sh

+6
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,9 @@ while IFS= read -r line; do
3939
eval "$cmd" # || echo ${cmd}" encountered an error, but continuing..."
4040
fi
4141
done < /rocker_scripts/original.Dockerfile
42+
43+
# Install extra tex packages that are not installed by default
44+
if command -v tlmgr &> /dev/null; then
45+
echo "Installing texlive collection-latexrecommended..."
46+
tlmgr install collection-latexrecommended
47+
fi

start

+7-3
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,13 @@ shopt -s nullglob
1919
# build-time.
2020
APPLICATIONS_DIR="${HOME}/.local/share/applications"
2121
DESKTOP_DIR="${HOME}/Desktop"
22+
# Remove DESKTOP_DIR if it exists to avoid leftover files
23+
if [ -d "${DESKTOP_DIR}" ]; then
24+
rm -rf "${DESKTOP_DIR}"
25+
fi
2226
mkdir -p "${APPLICATIONS_DIR}"
2327
mkdir -p "${DESKTOP_DIR}"
24-
for desktop_file_path in ${REPO_DIR}/*.desktop; do
28+
for desktop_file_path in ${REPO_DIR}/Desktop/*.desktop; do
2529
cp "${desktop_file_path}" "${APPLICATIONS_DIR}/."
2630

2731
# Symlink application to desktop
@@ -30,11 +34,11 @@ for desktop_file_path in ${REPO_DIR}/*.desktop; do
3034
done
3135
update-desktop-database "${APPLICATIONS_DIR}"
3236

33-
# Add MIME Type data from XML files in `mime/` dir to the MIME database.
37+
# Add MIME Type data from XML files to the MIME database.
3438
MIME_DIR="${HOME}/.local/share/mime"
3539
MIME_PACKAGES_DIR="${MIME_DIR}/packages"
3640
mkdir -p "${MIME_PACKAGES_DIR}"
37-
for mime_file_path in ${REPO_DIR}/mime/*.xml; do
41+
for mime_file_path in ${REPO_DIR}/Desktop/*.xml; do
3842
cp "${mime_file_path}" "${MIME_PACKAGES_DIR}/."
3943
done
4044
update-mime-database "${MIME_DIR}"

0 commit comments

Comments
 (0)