Skip to content

Commit

Permalink
update start
Browse files Browse the repository at this point in the history
  • Loading branch information
betolink committed Mar 26, 2024
1 parent 0fa5433 commit e324d1e
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions ci/start
Original file line number Diff line number Diff line change
Expand Up @@ -5,33 +5,6 @@ set -euo pipefail
# ==== ONLY EDIT WITHIN THIS BLOCK =====
# Taken from https://github.com/CryoInTheCloud/hub-image/blob/main/start

export DISPLAY=":1.0"
# Add any .desktop files to the application database and desktop. This is done
# at startup-time because it's expected that a remote filesystem will be
# mounted at $HOME, which would overwrite the data if it was created at
# build-time.
APPLICATIONS_DIR="${HOME}/.local/share/applications"
DESKTOP_DIR="${HOME}/Desktop"
mkdir -p "${APPLICATIONS_DIR}"
mkdir -p "${DESKTOP_DIR}"



curl https://raw.githubusercontent.com/NASA-Openscapes/corn/main/ci/qgis.desktop -o "${APPLICATIONS_DIR}/qgis.desktop"

ln -sf "${APPLICATIONS_DIR}/qgis.desktop" "${DESKTOP_DIR}/qgis.desktop"

update-desktop-database "${APPLICATIONS_DIR}"

# Add MIME Type data from XML files in `mime/` dir to the MIME database.
MIME_DIR="${HOME}/.local/share/mime"
MIME_PACKAGES_DIR="${MIME_DIR}/packages"
mkdir -p "${MIME_PACKAGES_DIR}"

curl https://raw.githubusercontent.com/NASA-Openscapes/corn/main/ci/qgis.xml -o "${MIME_PACKAGES_DIR}/qgis.xml"

update-mime-database "${MIME_DIR}"

# ==== ONLY EDIT WITHIN THIS BLOCK =====

exec "$@"

0 comments on commit e324d1e

Please sign in to comment.