From a2cc1d08fdb5b991e5a47e74e6e534747e330c7c Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Mon, 29 Jul 2024 15:00:54 +0200 Subject: app: add mime type definition --- app/CMakeLists.txt | 9 +++++++++ app/desktop.in | 3 ++- app/mime.xml | 9 +++++++++ 3 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 app/mime.xml 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 @@ + + + + Turn order file + + + + + \ No newline at end of file -- cgit v1.2.3