Most Hugin icons are installed into the hicolor theme but the MIME type icon is still going into the defunct gnome theme. The attached patch changes that and removes the gnome-mime- prefix from the icon filename.
For me this appears to fix the icon not displaying for .pto files in GNOME Files (nautilus). The patch also updates this filename in artwork-src/update_artwork.sh, I only found that with grep and haven't tested it. Chris -- A list of frequently asked questions is available at: http://wiki.panotools.org/Hugin_FAQ --- You received this message because you are subscribed to the Google Groups "hugin and other free panoramic software" group. To unsubscribe from this group and stop receiving emails from it, send an email to hugin-ptx+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/hugin-ptx/5dfdadb8-5178-4fa9-890b-b923e91e2ba4%40googlegroups.com.
diff --git a/artwork-src/update_artwork.sh b/artwork-src/update_artwork.sh --- a/artwork-src/update_artwork.sh +++ b/artwork-src/update_artwork.sh @@ -270,7 +270,7 @@ O_LIN="src${S}hugin1${S}hugin${S}xrc${S}data${S}pto_icon.png" Iconify # extra Linux option for the gnome MIME type -cp "./${SRC}/${F}.48.png" "${P}src${S}hugin1${S}hugin${S}gnome-mime-application-x-ptoptimizer-script.png" +cp "./${SRC}/${F}.48.png" "${P}src${S}hugin1${S}hugin${S}application-x-ptoptimizer-script.png" # ----------------------------------------------------------------------------- diff --git a/src/hugin1/hugin/CMakeLists.txt b/src/hugin1/hugin/CMakeLists.txt --- a/src/hugin1/hugin/CMakeLists.txt +++ b/src/hugin1/hugin/CMakeLists.txt @@ -232,7 +232,7 @@ IF(UNIX) # install further stuff (icons etc.) INSTALL(FILES hugin.desktop DESTINATION ${DATADIR}/applications) - INSTALL(FILES gnome-mime-application-x-ptoptimizer-script.png DESTINATION ${DATADIR}/icons/gnome/48x48/mimetypes) + INSTALL(FILES application-x-ptoptimizer-script.png DESTINATION ${DATADIR}/icons/hicolor/48x48/mimetypes) INSTALL(FILES hugin.xml DESTINATION ${DATADIR}/mime/packages) ENDIF(UNIX) ENDIF(APPLE) diff --git a/src/hugin1/hugin/gnome-mime-application-x-ptoptimizer-script.png b/src/hugin1/hugin/application-x-ptoptimizer-script.png rename from src/hugin1/hugin/gnome-mime-application-x-ptoptimizer-script.png rename to src/hugin1/hugin/application-x-ptoptimizer-script.png