[education/rkward] rkward: Also add mime type for rkward output files
Thomas Friedrichsmeier
null at kde.org
Tue May 17 14:29:21 BST 2022
Git commit fd4daa70506da02ecf7cd915655c7b0bd943d1b1 by Thomas Friedrichsmeier.
Committed on 17/05/2022 at 13:29.
Pushed by tfry into branch 'master'.
Also add mime type for rkward output files
M +1 -0 rkward/CMakeLists.txt
M +1 -1 rkward/org.kde.rkward.desktop
A +9 -0 rkward/vnd.kde.rkward-output.xml
https://invent.kde.org/education/rkward/commit/fd4daa70506da02ecf7cd915655c7b0bd943d1b1
diff --git a/rkward/CMakeLists.txt b/rkward/CMakeLists.txt
index a3161582..c28a74ba 100644
--- a/rkward/CMakeLists.txt
+++ b/rkward/CMakeLists.txt
@@ -113,6 +113,7 @@ INSTALL(FILES org.kde.rkward.desktop DESTINATION ${XDG_APPS_INSTALL_DIR})
INSTALL(FILES org.kde.rkward.appdata.xml DESTINATION ${KDE_INSTALL_METAINFODIR})
INSTALL(FILES rkward.protocol DESTINATION ${SERVICES_INSTALL_DIR})
INSTALL(FILES vnd.rkward.r.xml DESTINATION ${XDG_MIME_INSTALL_DIR})
+INSTALL(FILES vnd.kde.rkward-output.xml DESTINATION ${XDG_MIME_INSTALL_DIR})
INSTALL(FILES vnd.kde.rmarkdown.xml DESTINATION ${XDG_MIME_INSTALL_DIR})
FIND_PACKAGE(SharedMimeInfo)
IF(SharedMimeInfo_FOUND)
diff --git a/rkward/org.kde.rkward.desktop b/rkward/org.kde.rkward.desktop
index 699a4ecd..497861a8 100755
--- a/rkward/org.kde.rkward.desktop
+++ b/rkward/org.kde.rkward.desktop
@@ -69,7 +69,7 @@ Terminal=false
Type=Application
X-DocPath=rkward/index.html
Categories=Qt;KDE;Science;Math;NumericalAnalysis;
-MimeType=text/r;application/rdata;text/vnd.kde.rmarkdown
+MimeType=text/r;application/rdata;text/vnd.kde.rmarkdown;application/vnd.kde.rkward-output
Keywords=statistics;data;r;
Keywords[ca]=estadÃstica;dades;r;
Keywords[ca at valencia]=estadÃstica;dades;r;
diff --git a/rkward/vnd.kde.rkward-output.xml b/rkward/vnd.kde.rkward-output.xml
new file mode 100644
index 00000000..aaa2bd33
--- /dev/null
+++ b/rkward/vnd.kde.rkward-output.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="application/vnd.kde.rkward-output">
+ <comment>RKWard Output document</comment>
+ <sub-class-of type="application/x-gzip"/>
+ <glob pattern="*.rko"/>
+ <generic-icon name="rkward"/>
+ </mime-type>
+</mime-info>
More information about the rkward-tracker
mailing list