Commit e688ef06 authored by Ingo Klöcker's avatar Ingo Klöcker
Browse files

Add media type definition for exported certificate group files

GnuPG-bug-id: 5638
parent 4a7905f7
Pipeline #98511 canceled with stage
add_subdirectory(icons)
add_subdirectory(mimetypes)
include_directories(${CMAKE_CURRENT_BINARY_DIR})
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
......
# always install the media types
install(FILES application-vnd-kde-kleopatra.xml DESTINATION ${XDG_MIME_INSTALL_DIR})
# require at least version 1.3 (same as for KF5)
find_package(SharedMimeInfo 1.3)
set_package_properties(SharedMimeInfo PROPERTIES
TYPE OPTIONAL
PURPOSE "Enables import of exported certificate groups with Kleopatra"
)
# update XDG mime-types if shared mime info is around
if(SharedMimeInfo_FOUND)
update_xdg_mimetypes(${XDG_MIME_INSTALL_DIR})
endif()
function get_files
{
echo application-vnd-kde-kleopatra.xml
}
function po_for_file
{
case "$1" in
application-vnd-kde-kleopatra.xml)
echo kleopatra_xml_mimetypes.po
;;
esac
}
function tags_for_file
{
case "$1" in
application-vnd-kde-kleopatra.xml)
echo comment
;;
esac
}
<?xml version="1.0" encoding="UTF-8"?>
<!--
SPDX-License-Identifier: CC0-1.0
SPDX-FileCopyrightText: 2021 g10 Code GmbH
SPDX-FileContributor: Ingo Klöcker <dev@ingo-kloecker.de>
-->
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
<mime-type type="application/vnd.kde.kleopatra.keygroup">
<comment>Kleopatra certificate group</comment>
<sub-class-of type="text/plain"/>
<generic-icon name="text-x-generic"/>
<magic priority="80">
<match type="string" value="[KeyGroup-" offset="0"/>
</magic>
<glob pattern="*.kgrp"/>
</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