Add a mime type xml file to register the yuv extension on linux

This commit is contained in:
jfmcarreira committed 2014-04-12 13:12:36 +01:00
1 parent 4446685a62
commit 0079189458
2 files changed
+19

No files matched your search

+12
View File
@@ -100,11 +100,23 @@ IF( NOT USE_QT4)
QT5_USE_MODULES( ${PROJECT_NAME} ${CURR_QT_MODULES} )
ENDIF()
######################################################################################
# Install
######################################################################################
INSTALL(TARGETS ${PROJECT_NAME} DESTINATION bin )
INSTALL(FILES resources/playuver.desktop DESTINATION share/applications )
INSTALL(FILES resources/playuver.png DESTINATION share/icons )
INSTALL(FILES resources/x-raw.xml DESTINATION share/mime/video )
# # try to set up the menu system
# find_program(XDG-MIME_EXECUTABLE xdg-mime)
# # find_program(XDG-DESKTOP-MENU_EXECUTABLE xdg-desktop-menu)
# INSTALL(CODE "execute_process(COMMAND ${XDG-MIME_EXECUTABLE} install --novendor resources/)" )
######################################################################################
# Final information dump
######################################################################################
status("Configuration:")
status(" Build type:" ${CMAKE_BUILD_TYPE} )
status(" Warnings as errors:" USE_WERROR THEN YES ELSE NO)
+7
View File
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<mime-type xmlns="http://www.freedesktop.org/standards/shared-mime-info" type="video/x-raw">
<comment>Raw YUV file</comment>
<icon name="video-x-generic"/>
<glob-deleteall/>
<glob pattern="*.yuv"/>
</mime-type>