diff --git a/res/AppImage/icestudio.AppDir/AppRun b/res/AppImage/icestudio.AppDir/AppRun index 8cdaa7d57..53533d851 100755 --- a/res/AppImage/icestudio.AppDir/AppRun +++ b/res/AppImage/icestudio.AppDir/AppRun @@ -207,12 +207,13 @@ if [ "$INSTALL" == 1 ] ; then # Install mime type find "${APPDIR}/usr/share/mime/" -type f -name *xml -exec xdg-mime install $SYSTEM_WIDE --novendor {} \; 2>/dev/null || true + xdg-mime default "$VENDORPREFIX-$DESKTOP_FILE_NAME".desktop text/x-icestudio # Install the icon files for the mime type; TODO: scalable ICONS=$(find "${APPDIR}/usr/share/icons/" -wholename "*/mimetypes/*.png" 2>/dev/null || true) for ICON in $ICONS ; do ICON_SIZE=$(echo "${ICON}" | rev | cut -d "/" -f 3 | rev | cut -d "x" -f 1) - xdg-icon-resource install --context mimetypes --size ${ICON_SIZE} "${ICON}" $(basename $ICON | sed -e 's/.png//g') + xdg-icon-resource install --context mimetypes --size ${ICON_SIZE} "${ICON}" text-x-icestudio done xdg-desktop-menu forceupdate diff --git a/res/AppImage/icestudio.AppDir/Icestudio.desktop b/res/AppImage/icestudio.AppDir/Icestudio.desktop index 41afd3117..2b02ad846 100644 --- a/res/AppImage/icestudio.AppDir/Icestudio.desktop +++ b/res/AppImage/icestudio.AppDir/Icestudio.desktop @@ -7,5 +7,6 @@ Terminal=false Type=Application X-AppImage-BuildId={{icestudioBuildId}} Categories=Development +MimeType=text/x-icestudio diff --git a/res/AppImage/icestudio.AppDir/icestudio.png b/res/AppImage/icestudio.AppDir/icestudio.png index ebbea1890..a02bc01aa 100644 Binary files a/res/AppImage/icestudio.AppDir/icestudio.png and b/res/AppImage/icestudio.AppDir/icestudio.png differ diff --git a/res/AppImage/icestudio.AppDir/usr/share/icons/hicolor/256x256/apps/icestudio.png b/res/AppImage/icestudio.AppDir/usr/share/icons/hicolor/256x256/apps/icestudio.png index ebbea1890..a02bc01aa 100644 Binary files a/res/AppImage/icestudio.AppDir/usr/share/icons/hicolor/256x256/apps/icestudio.png and b/res/AppImage/icestudio.AppDir/usr/share/icons/hicolor/256x256/apps/icestudio.png differ diff --git a/res/AppImage/icestudio.AppDir/usr/share/mime/icestudio.xml b/res/AppImage/icestudio.AppDir/usr/share/mime/icestudio.xml new file mode 100644 index 000000000..148982f95 --- /dev/null +++ b/res/AppImage/icestudio.AppDir/usr/share/mime/icestudio.xml @@ -0,0 +1,10 @@ + + + + Icestudio Project + Icestudio Project + Proyecto de Icestudio + + + + \ No newline at end of file