]> git.rm.cloudns.org Git - xonotic/netradiant.git/commitdiff
mime: fix mimetype and file type association
authorThomas Debesse <dev@illwieckz.net>
Tue, 11 Jan 2022 10:53:24 +0000 (11:53 +0100)
committerThomas Debesse <dev@illwieckz.net>
Tue, 11 Jan 2022 10:53:24 +0000 (11:53 +0100)
CMakeLists.txt
icons/mime/map.xml [deleted file]
icons/x-netradiant-map.xml [new file with mode: 0644]

index fe345ca4e02d58cf0f78352af044c5b2caac6e10..be945731044fe6c2e7eeefd0a4a175642edc9108 100644 (file)
@@ -555,8 +555,8 @@ if (BUILD_BINARIES AND FHS_INSTALL AND NOT WIN32 AND NOT APPLE)
         DESTINATION ${RADIANT_SHARE_DIR}/applications
     )
     install(FILES
-        icons/mime/map.xml
-        DESTINATION ${RADIANT_SHARE_DIR}/mime/model
+        icons/x-netradiant-map.xml
+        DESTINATION ${RADIANT_SHARE_DIR}/mime/application
     )
 endif ()
 
diff --git a/icons/mime/map.xml b/icons/mime/map.xml
deleted file mode 100644 (file)
index f206bdb..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
-    <mime-type type="model/map">
-    <generic-icon name="text-x-generic"/>
-    <sub-class-of type="text/plain"/>
-    <comment>Game level source</comment>
-    <glob pattern="*.map"/>
-  </mime-type>
-</mime-info>
diff --git a/icons/x-netradiant-map.xml b/icons/x-netradiant-map.xml
new file mode 100644 (file)
index 0000000..60ff0c8
--- /dev/null
@@ -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/x-netradiant-map">
+    <generic-icon name="text-x-generic"/>
+    <sub-class-of type="text/plain"/>
+    <comment>Game level source</comment>
+    <glob pattern="*.map"/>
+  </mime-type>
+</mime-info>