Skip to content

FilmCraft: An open-source, nonlinear video editor written by scratch in pure Rust

packaging: Linux file managers offer FilmCraft for .fcproj projects and video files

lloyd69a6c4b62584
diff --git a/packaging/linux/__pycache__/test_install.cpython-313.pyc b/packaging/linux/__pycache__/test_install.cpython-313.pyc
new file mode 100644
index 000000000..7b771ec8f
Binary files /dev/null and b/packaging/linux/__pycache__/test_install.cpython-313.pyc differ
diff --git a/packaging/linux/ai.storyteller.filmcraft.desktop b/packaging/linux/ai.storyteller.filmcraft.desktop
index e20ef6f9f..3d9d85153 100644
--- a/packaging/linux/ai.storyteller.filmcraft.desktop
+++ b/packaging/linux/ai.storyteller.filmcraft.desktop
@@ -10,4 +10,5 @@ Terminal=false
StartupNotify=true
StartupWMClass=ai.storyteller.filmcraft
Categories=AudioVideo;Video;AudioVideoEditing;
+MimeType=application/x-filmcraft;video/mp4;video/x-m4v;video/quicktime;video/x-matroska;video/webm;video/vnd.avi;video/x-msvideo;application/mxf;video/mp2t;video/mpeg;video/3gpp;
Keywords=video;editor;film;timeline;color;grading;nle;
diff --git a/packaging/linux/ai.storyteller.filmcraft.metainfo.xml.in b/packaging/linux/ai.storyteller.filmcraft.metainfo.xml.in
index 971126f3b..9fd005ca2 100644
--- a/packaging/linux/ai.storyteller.filmcraft.metainfo.xml.in
+++ b/packaging/linux/ai.storyteller.filmcraft.metainfo.xml.in
@@ -54,6 +54,7 @@
</supports>
<provides>
<binary>filmcraft</binary>
+ <mediatype>application/x-filmcraft</mediatype>
</provides>
<content_rating type="oars-1.1"/>
<releases>
diff --git a/packaging/linux/ai.storyteller.filmcraft.mime.xml b/packaging/linux/ai.storyteller.filmcraft.mime.xml
index be4dcc220..6fe0feb6b 100644
--- a/packaging/linux/ai.storyteller.filmcraft.mime.xml
+++ b/packaging/linux/ai.storyteller.filmcraft.mime.xml
@@ -1,3 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
+<!-- shared-mime-info definitions for types the system database doesn't have.
+ Installed to /usr/share/mime/packages/ (update-mime-database runs on install).
+ The type name matches the macOS UTI's public.mime-type in packaging/macos/Info.plist.in. -->
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
+ <mime-type type="application/x-filmcraft">
+ <comment>FilmCraft project</comment>
+ <sub-class-of type="application/json"/>
+ <icon name="ai.storyteller.filmcraft"/>
+ <glob pattern="*.fcproj"/>
+ </mime-type>
</mime-info>
diff --git a/packaging/linux/flatpak/ai.storyteller.filmcraft.bundle.yml b/packaging/linux/flatpak/ai.storyteller.filmcraft.bundle.yml
index 4a95d0f7e..db9006bfa 100644
--- a/packaging/linux/flatpak/ai.storyteller.filmcraft.bundle.yml
+++ b/packaging/linux/flatpak/ai.storyteller.filmcraft.bundle.yml
@@ -48,8 +48,8 @@ modules:
- install -Dm755 bin/filmcraft /app/bin/filmcraft
- install -Dm755 bin/filmcraft-cli /app/bin/filmcraft-cli
- install -Dm644 share/applications/ai.storyteller.filmcraft.desktop /app/share/applications/ai.storyteller.filmcraft.desktop
- # The same MIME file the deb/rpm install (no types of its own yet; the runtime's
- # shared-mime-info already knows the video and audio formats).
+ # The same MIME file the deb/rpm install: it defines the .fcproj project type (the
+ # runtime's shared-mime-info already knows the video and audio formats).
- install -Dm644 share/mime/packages/ai.storyteller.filmcraft.xml /app/share/mime/packages/ai.storyteller.filmcraft.xml
# Already has the release's version and date substituted by package.sh.
- install -Dm644 share/metainfo/ai.storyteller.filmcraft.metainfo.xml /app/share/metainfo/ai.storyteller.filmcraft.metainfo.xml