Add mime info
This commit is contained in:
parent
36ed33685c
commit
5c74cbcf55
|
@ -1171,6 +1171,7 @@ if (NOT ANDROID OR TERMUX)
|
|||
include(GNUInstallDirs)
|
||||
install(TARGETS furnace RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
|
||||
install(FILES res/furnace.desktop DESTINATION ${CMAKE_INSTALL_DATADIR}/applications)
|
||||
install(FILES res/mime.xml RENAME furnace.xml DESTINATION ${CMAKE_INSTALL_DATADIR}/mime/packages)
|
||||
if (NOT DONT_HAVE_GIT)
|
||||
install(FILES ${CMAKE_BINARY_DIR}/furnace.appdata.xml DESTINATION ${CMAKE_INSTALL_DATADIR}/metainfo)
|
||||
endif()
|
||||
|
|
|
@ -5,4 +5,5 @@ Icon=furnace
|
|||
Exec=furnace
|
||||
Terminal=false
|
||||
Type=Application
|
||||
MimeType=audio/x-fur
|
||||
Categories=AudioVideo;Audio;
|
||||
|
|
20
res/mime.xml
Normal file
20
res/mime.xml
Normal file
|
@ -0,0 +1,20 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
|
||||
<mime-type type="audio/x-fur">
|
||||
<comment>Furnace module</comment>
|
||||
<magic priority="50">
|
||||
<match type="string" value="-Furnace module-" offset="0" />
|
||||
<match type="string" value="\170\234" offset="0" />
|
||||
</magic>
|
||||
<glob pattern="*.fur" />
|
||||
</mime-type>
|
||||
|
||||
<mime-type type="audio/x-fui">
|
||||
<comment>Furnace instrument</comment>
|
||||
<magic priority="50">
|
||||
<match type="string" value="-Furnace instr.-" offset="0" />
|
||||
<match type="string" value="FINS" offset="0" />
|
||||
</magic>
|
||||
<glob pattern="*.fui" />
|
||||
</mime-type>
|
||||
</mime-info>
|
Loading…
Reference in a new issue