Skip to content

Commit

Permalink
Fix icon
Browse files Browse the repository at this point in the history
  • Loading branch information
simoniz0r committed May 7, 2018
1 parent 2041b96 commit b8ce2c5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions resources/desktopintegration
Expand Up @@ -267,9 +267,9 @@ Exec="$APPIMAGE" --remove-appimage-desktop-integration
EOF

# Install the icon files for the application; TODO: scalable
ICON="${APPDIR}/${APP}.png"
ICON_SIZE=$(file ${APPDIR}/${APP}.png | cut -f2 -d',' | tr -d '[:blank:]' | cut -f1 -d'x')
xdg-icon-resource install --context apps --size ${ICON_SIZE} "${ICON}" "${RESOURCE_NAME}"
ICON="$(dir -Cw1 ${APPDIR} | grep -m1 '.png')"
ICON_SIZE=$(file ${APPDIR}/${ICON} | cut -f2 -d',' | tr -d '[:blank:]' | cut -f1 -d'x')
xdg-icon-resource install --context apps --size ${ICON_SIZE} "${APPDIR}"/"${ICON}" "${RESOURCE_NAME}"

# Install mime type
find "${APPDIR}/usr/share/mime/" -type f -name *xml -exec xdg-mime install $SYSTEM_WIDE --novendor {} \; 2>/dev/null || true
Expand Down

0 comments on commit b8ce2c5

Please sign in to comment.