Add mime type for 'aup3' file extension
authorBenjamin Drung <benjamin.drung@canonical.com>
Wed, 28 Sep 2022 13:20:05 +0000 (15:20 +0200)
committerDennis Braun <snd@debian.org>
Wed, 1 Feb 2023 20:56:51 +0000 (21:56 +0100)
The new file extension `.aup3` is not recognized on Linux.

Add a new mime type `application/x-audacity-project+sqlite3` for the
file extension `.aup3` and add this mime type to the supported mime
types of audacity.

Ideally the Audacity team should register two mime types at IATA. These
mime type should probably be named `audio/vnd.audacity.project+sqlite3`
and `audio/vnd.audacity.project+xml`.

Forwarded: https://github.com/audacity/audacity/pull/3713
Signed-off-by: Benjamin Drung <benjamin.drung@canonical.com>
Gbp-Pq: Name Add-mime-type-for-aup3-file-extension.patch

src/CMakeLists.txt
src/audacity.xml

index 9039256fb66e56aedbb4ac52cb1ba1c1f2ad9a9a..226f05df177dd66a3b11f5e1962e78eae6dfbc59 100644 (file)
@@ -1464,6 +1464,7 @@ else()
    # entries in the list.)
    set( MIMETYPES
       application/x-audacity-project
+      application/x-audacity-project+sqlite3
    )
    if( USE_FFMPEG )
       list( APPEND MIMETYPES
index 9af55f5391ca0c847c1712e2b2f3df0b74b46a27..91206c1c12532584c1e5bde6283fda3038843a37 100644 (file)
@@ -5,4 +5,9 @@
     <comment>Audacity project</comment>
     <glob pattern="*.aup"/>
   </mime-type>
+  <mime-type type="application/x-audacity-project+sqlite3">
+    <sub-class-of type="application/vdn.sqlite3"/>
+    <comment>Audacity project</comment>
+    <glob pattern="*.aup3"/>
+  </mime-type>
 </mime-info>