From 981f291ab05ff8036bf7f1cd1b2f7ad4b6b5983f Mon Sep 17 00:00:00 2001 From: Thomas Huth Date: Wed, 1 Jul 2026 20:34:12 +0200 Subject: [PATCH] Add mime type configuration for IPF and SCP disk images And while we're at it, update the mime type of STX disk images to the new official type now. --- share/CMakeLists.txt | 4 ++-- share/applications/hatari.desktop | 2 +- share/mime/packages/hatari.xml | 18 +++++++++++++++++- 3 files changed, 20 insertions(+), 4 deletions(-) diff --git a/share/CMakeLists.txt b/share/CMakeLists.txt index 4bc1eed57..8c696800e 100644 --- a/share/CMakeLists.txt +++ b/share/CMakeLists.txt @@ -4,7 +4,7 @@ foreach(size 32x32 48x48 64x64 128x128 256x256) DESTINATION ${ICONDIR}/${size}/apps) install(FILES icons/hicolor/${size}/mimetypes/application-x-st-disk-image.png DESTINATION ${ICONDIR}/${size}/mimetypes) - foreach(type vnd.msa vnd.fastcopy x-stx) + foreach(type vnd.msa vnd.fastcopy vnd.pasti-stx vnd.softpres-ipf vnd.supercard-pro) 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) @@ -16,7 +16,7 @@ install(FILES icons/hicolor/scalable/apps/hatari.svg DESTINATION ${ICONDIR}/scalable/apps) install(FILES icons/hicolor/scalable/mimetypes/application-x-st-disk-image.svg DESTINATION ${ICONDIR}/scalable/mimetypes) -foreach(type vnd.msa vnd.fastcopy x-stx) +foreach(type vnd.msa vnd.fastcopy vnd.pasti-stx vnd.softpres-ipf vnd.supercard-pro) 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) diff --git a/share/applications/hatari.desktop b/share/applications/hatari.desktop index e1d302572..db664cf15 100644 --- a/share/applications/hatari.desktop +++ b/share/applications/hatari.desktop @@ -5,7 +5,7 @@ Comment=Emulator for Atari ST/STE/TT/Falcon computers Comment[fr]=Emulateur pour les ordinateurs Atari ST/STE/TT/Falcon Exec=hatari %f Icon=hatari -MimeType=application/x-st-disk-image;application/vnd.msa-disk-image;application/vnd.fastcopy-disk-image;application/x-stx-disk-image; +MimeType=application/x-st-disk-image;application/vnd.msa-disk-image;application/vnd.fastcopy-disk-image;application/vnd.pasti-stx-disk-image;application/vnd.softpres-ipf-disk-image;application/vnd.supercard-pro-disk-image; Categories=Game;Emulator; Keywords=Emulator;Atari;Atari ST;Atari Falcon; Terminal=false diff --git a/share/mime/packages/hatari.xml b/share/mime/packages/hatari.xml index 947782d0d..5ef074efc 100644 --- a/share/mime/packages/hatari.xml +++ b/share/mime/packages/hatari.xml @@ -21,7 +21,7 @@ - + Pasti STX disk image @@ -29,4 +29,20 @@ + + + Interchangeable Preservation Format disk image + + + + + + + + Supercard Pro disk image + + + + +