diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2024-07-29 15:00:54 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2024-07-29 15:00:54 +0200 |
| commit | a2cc1d08fdb5b991e5a47e74e6e534747e330c7c (patch) | |
| tree | 7ed49f24b04a543ab2577abc05814f5009a67932 | |
| parent | 6df08042ae4509ef2c8fd469babf6eb1c1cfbabf (diff) | |
| download | turns-a2cc1d08fdb5b991e5a47e74e6e534747e330c7c.tar.xz turns-a2cc1d08fdb5b991e5a47e74e6e534747e330c7c.zip | |
app: add mime type definition
| -rw-r--r-- | app/CMakeLists.txt | 9 | ||||
| -rw-r--r-- | app/desktop.in | 3 | ||||
| -rw-r--r-- | app/mime.xml | 9 |
3 files changed, 20 insertions, 1 deletions
diff --git a/app/CMakeLists.txt b/app/CMakeLists.txt index 8443eb9..da6d90f 100644 --- a/app/CMakeLists.txt +++ b/app/CMakeLists.txt @@ -34,3 +34,12 @@ install(FILES "${CMAKE_CURRENT_BINARY_DIR}/turns.desktop" DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/applications" ) + +configure_file("mime.xml" + "turns.xml" +) + +install(FILES + "${CMAKE_CURRENT_BINARY_DIR}/turns.xml" + DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/mime/packages" +) diff --git a/app/desktop.in b/app/desktop.in index 74d8ce4..99c0307 100644 --- a/app/desktop.in +++ b/app/desktop.in @@ -6,4 +6,5 @@ GenericName=Turn Tracker Icon=ch.arknet.Turns StartupNotify=true Exec=@CMAKE_INSTALL_FULL_BINDIR@/turns %u -Categories=Utility
\ No newline at end of file +Categories=Utility; +MimeType=text/x-turn-order;
\ No newline at end of file diff --git a/app/mime.xml b/app/mime.xml new file mode 100644 index 0000000..92e0ff4 --- /dev/null +++ b/app/mime.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info"> + <mime-type type="text/x-turn-order"> + <comment>Turn order file</comment> + <icon name="text-plain"/> + <glob-deleteall/> + <glob pattern="*.trns"/> + </mime-type> +</mime-info>
\ No newline at end of file |
