mirror of
https://github.com/storytold/designcraft.git
synced 2026-10-25 10:46:50 -06:00
- file.save / file.saveAs / file.saveACopy add the .designcraft extension to a given path that lacks it and report the path written; saving back to the document's own file keeps its name. - file.open tells DesignCraft and IDML packages apart by content, so files without an extension open; anything else is "not a DesignCraft or IDML file". - Dropped or web-picked files without an extension open as documents when their content is one. - Desktop save dialogs filter on the suggested extension and add it to a name typed without it, asking before replacing an existing file; the open dialog gains "All files". - macOS: open-documents Apple events (Finder, Dock, Open With) through fmv-macos-events, queued until the window is ready; Info.plist declares the .designcraft type and an imported .idml type with CFBundleDocumentTypes. - Windows MSI: .designcraft ProgId with an Open verb, IDML under Open with. - Linux: shared-mime-info for both types and MimeType in the .desktop file. Fixes #158, #211, #375
18 lines
773 B
XML
18 lines
773 B
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!-- Installed as share/mime/packages/ai.storyteller.designcraft.xml (package.sh, the Flatpak
|
|
manifests). Both formats are zip files, so they are matched by extension: zip magic would
|
|
claim every archive. -->
|
|
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
|
|
<mime-type type="application/x-designcraft">
|
|
<comment>DesignCraft document</comment>
|
|
<sub-class-of type="application/zip"/>
|
|
<generic-icon name="ai.storyteller.designcraft"/>
|
|
<glob pattern="*.designcraft"/>
|
|
</mime-type>
|
|
<mime-type type="application/vnd.adobe.indesign-idml-package">
|
|
<comment>IDML document</comment>
|
|
<sub-class-of type="application/zip"/>
|
|
<glob pattern="*.idml"/>
|
|
</mime-type>
|
|
</mime-info>
|