diff --git a/Desktop/README.md b/Desktop/README.md new file mode 100644 index 0000000..963bb41 --- /dev/null +++ b/Desktop/README.md @@ -0,0 +1 @@ +This is a folder Desktop apps files: .desktop, .xml, .png diff --git a/appendix b/appendix index 43b7e61..96e7450 100644 --- a/appendix +++ b/appendix @@ -5,9 +5,9 @@ ENV R_VERSION="4.4.1" ENV R_DOCKERFILE="verse_${R_VERSION}" RUN PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin && \ chmod +x ${REPO_DIR}/rocker.sh && \ - ${REPO_DIR}/rocker.sh -# Missing some basic tex packages -RUN tlmgr install collection-latexrecommended && tlmgr clean --all + ${REPO_DIR}/rocker.sh && \ + tlmgr install collection-latexrecommended && \ + tlmgr clean --all # Install extra cmd line packages after R installation # The package_list part is reading the file and doing clean-up to just have the list of packages @@ -28,5 +28,9 @@ RUN yes | unminimize ENV MANPATH="${NB_PYTHON_PREFIX}/share/man:${MANPATH}" RUN mandb +# Copy Desktop files into ${REPO_DIR}/Desktop if they exist +ONBUILD RUN mkdir -p ${REPO_DIR}/Desktop && \ + if [ -d Desktop ]; then cp Desktop/* ${REPO_DIR}/Desktop/; fi + # Revert to default user USER ${NB_USER} diff --git a/mime/README.md b/mime/README.md deleted file mode 100644 index 411b857..0000000 --- a/mime/README.md +++ /dev/null @@ -1 +0,0 @@ -This is a folder for xml for Desktop apps. diff --git a/start b/start index b4c5c12..e5afbfe 100644 --- a/start +++ b/start @@ -21,7 +21,7 @@ APPLICATIONS_DIR="${HOME}/.local/share/applications" DESKTOP_DIR="${HOME}/Desktop" mkdir -p "${APPLICATIONS_DIR}" mkdir -p "${DESKTOP_DIR}" -for desktop_file_path in ${REPO_DIR}/*.desktop; do +for desktop_file_path in ${REPO_DIR}/Desktop/*.desktop; do cp "${desktop_file_path}" "${APPLICATIONS_DIR}/." # Symlink application to desktop @@ -30,11 +30,11 @@ for desktop_file_path in ${REPO_DIR}/*.desktop; do done update-desktop-database "${APPLICATIONS_DIR}" -# Add MIME Type data from XML files in `mime/` dir to the MIME database. +# Add MIME Type data from XML files to the MIME database. MIME_DIR="${HOME}/.local/share/mime" MIME_PACKAGES_DIR="${MIME_DIR}/packages" mkdir -p "${MIME_PACKAGES_DIR}" -for mime_file_path in ${REPO_DIR}/mime/*.xml; do +for mime_file_path in ${REPO_DIR}/Desktop/*.xml; do cp "${mime_file_path}" "${MIME_PACKAGES_DIR}/." done update-mime-database "${MIME_DIR}"