Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.
C++
add fallback icon if thumbnailer can't process the file
Ivan Yossi71ff08bc9aea
diff --git a/krita/CMakeLists.txt b/krita/CMakeLists.txtindex 407109876e..9dc9a48d2c 100644--- a/krita/CMakeLists.txt+++ b/krita/CMakeLists.txt@@ -175,11 +175,14 @@ endif()if(APPLE)- set(KRITA_ASSET_KRZ_ICNS "krita-krz.icns")+ set(KRITA_ASSET_KRZ_ICNS "krita-krz.icns" "krita-kra.icns")add_custom_command(OUTPUT ${KRITA_ASSET_KRZ_ICNS}COMMAND ${CMAKE_COMMAND}- ARGS -E copy "./pics/mimetypes/krz/${KRITA_ASSET_KRZ_ICNS}" "${CMAKE_CURRENT_BINARY_DIR}/${KRITA_ASSET_KRZ_ICNS}"+ ARGS -E copy+ "./pics/mimetypes/krz/krita-krz.icns"+ "./pics/mimetypes/krita-kra.icns"+ "${CMAKE_CURRENT_BINARY_DIR}"WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})set_source_files_properties(${KRITA_ASSET_KRZ_ICNS} PROPERTIES MACOSX_PACKAGE_LOCATION Resources)diff --git a/krita/Info.plist.template b/krita/Info.plist.templateindex 890acb22af..9980218b95 100644--- a/krita/Info.plist.template+++ b/krita/Info.plist.template@@ -50,7 +50,7 @@<array><dict><key>CFBundleTypeIconFile</key>- <string>krita</string>+ <string>krita-kra</string><key>CFBundleTypeName</key><string>Krita File</string><key>CFBundleTypeRole</key>diff --git a/krita/pics/mimetypes/krita-kra.icns b/krita/pics/mimetypes/krita-kra.icnsnew file mode 100644index 0000000000..a6b40d34d0Binary files /dev/null and b/krita/pics/mimetypes/krita-kra.icns differdiff --git a/packaging/macos/osxdeploy.sh b/packaging/macos/osxdeploy.shindex fde13f7cda..0aba1ddc31 100755--- a/packaging/macos/osxdeploy.sh+++ b/packaging/macos/osxdeploy.sh@@ -635,6 +635,7 @@ krita_deploy () {rsync -prul --delete ./ \--exclude krita.icns \--exclude krita-krz.icns \+ --exclude krita-kra.icns \--exclude Assets.car \--exclude aclocal \--exclude doc \