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.fix-macos-leak
parent
021f724881
commit
4ee8699065
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue