Skip to content

Commit

Permalink
Update desktop.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
eeholmes authored Oct 30, 2024
1 parent c5a0c5d commit 83390b0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions desktop.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,13 @@ update-mime-database "${MIME_DIR}"
ICON_DIR="/usr/share/icons"
ICON_PACKAGES_DIR="${ICON_DIR}/packages"
mkdir -p "${ICON_PACKAGES_DIR}"
# Create the required index.theme file
cat <<EOF > "${ICON_PACKAGES_DIR}/index.theme"
[Icon Theme]
Name=xfce4 display icons
Comment=User provided icons for applications
EOF
# Copy in the icons
for icon_file_path in "${REPO_DIR}"/Desktop/*.png; do
cp "${icon_file_path}" "${ICON_PACKAGES_DIR}/" || echo "Failed to copy ${icon_file_path}"
done
Expand Down

0 comments on commit 83390b0

Please sign in to comment.