Commit c138c891 authored by Volker Krause's avatar Volker Krause

Register the Apple Wallet pass mimetype

Silences runtime warnings while processing pkpass attachments.
parent ab79317c
......@@ -127,7 +127,7 @@ add_definitions(-DQT_NO_URL_CAST_FROM_STRING)
# Extra package
find_package(Gpgmepp 1.8.0 CONFIG)
set_package_properties(Gpgmepp PROPERTIES DESCRIPTION "GpgME library" URL "http://www.gnupg.org" TYPE REQUIRED)
find_package(SharedMimeInfo REQUIRED)
if (KDEPIMADDONS_BUILD_EXAMPLES)
add_subdirectory(examples)
......
......@@ -14,3 +14,6 @@ target_link_libraries(messageviewer_bodypartformatter_pkpass
Grantlee5::Templates
)
install(TARGETS messageviewer_bodypartformatter_pkpass DESTINATION ${KDE_INSTALL_PLUGINDIR}/messageviewer/bodypartformatter)
install(FILES application-vnd-apple-pkpass.xml DESTINATION ${XDG_MIME_INSTALL_DIR})
update_xdg_mimetypes(${XDG_MIME_INSTALL_DIR})
<?xml version="1.0" encoding="UTF-8"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
<mime-type type="application/vnd.apple.pkpass">
<sub-class-of type="application/zip"/>
<comment>Apple Wallet pass</comment>
<glob pattern="*.pkpass"/>
</mime-type>
</mime-info>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment