From 4ee869906540343522db76f1ed170e74f3dbed8c Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Fri, 21 May 2021 08:07:16 +0200 Subject: [PATCH] Fix icon name for XDG mimetypes The default icon for XDG mimetypes is the name of the mime with '/' replaced with '-', unless the mimetype has an 'icon' attribute (and solvespace-mime.xml does not have it). So the right icon name for application/x-solvespace is 'application-x-solvespace', not 'application.x-solvespace'. Hence, properly rename the mimetype icons in non-flatpak and non-snap installations. --- res/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/res/CMakeLists.txt b/res/CMakeLists.txt index e702a568..3b4216c1 100644 --- a/res/CMakeLists.txt +++ b/res/CMakeLists.txt @@ -199,7 +199,7 @@ else() RENAME solvespace.svg) install(FILES freedesktop/solvespace-scalable.svg DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/scalable/mimetypes - RENAME application.x-solvespace.svg) + RENAME application-x-solvespace.svg) foreach(SIZE 16x16 24x24 32x32 48x48) install(FILES freedesktop/solvespace-${SIZE}.png @@ -207,7 +207,7 @@ else() RENAME solvespace.png) install(FILES freedesktop/solvespace-${SIZE}.png DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/${SIZE}/mimetypes - RENAME application.x-solvespace.png) + RENAME application-x-solvespace.png) endforeach() endif() endif()