--- share/CMakeLists.txt.orig	2024-04-26 10:53:02 UTC
+++ share/CMakeLists.txt
@@ -6,8 +6,8 @@ foreach(size 32x32 48x48 64x64 128x128 256x256)
 		DESTINATION ${ICONDIR}/${size}/mimetypes)
 	foreach(type vnd.msa vnd.fastcopy x-stx)
 		install(CODE "execute_process(COMMAND \"${CMAKE_COMMAND}\" -E create_symlink
-				application-x-st-disk-image.png
-				\$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/${ICONDIR}/${size}/mimetypes/application-${type}-disk-image.png)
+				application-x-st-disk-image.png application-${type}-disk-image.png
+				WORKING_DIRECTORY \$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/${ICONDIR}/${size}/mimetypes)
 				")
 	endforeach()
 endforeach()
@@ -18,8 +18,8 @@ foreach(type vnd.msa vnd.fastcopy x-stx)
 	DESTINATION ${ICONDIR}/scalable/mimetypes)
 foreach(type vnd.msa vnd.fastcopy x-stx)
 	install(CODE "execute_process(COMMAND \"${CMAKE_COMMAND}\" -E create_symlink
-			application-x-st-disk-image.svg
-			\$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/${ICONDIR}/scalable/mimetypes/application-${type}-disk-image.svg)
+			application-x-st-disk-image.svg application-${type}-disk-image.svg 
+			WORKING_DIRECTORY \$ENV{DESTDIR}${CMAKE_INSTALL_PREFIX}/${ICONDIR}/scalable/mimetypes)
 			")
 endforeach()
 install(FILES mime/packages/hatari.xml DESTINATION share/mime/packages)
