mirror of
https://github.com/storytold/figcraft.git
synced 2026-10-31 13:56:54 -06:00
Linux: the shared-mime-info package declares application/x-sketch (a zip, *.sketch) and the desktop entry and AppStream metadata list it. Windows: the installer registers a Figcraft.Sketch ProgId under .sketch's OpenWithProgids and .sketch in figcraft.exe's SupportedTypes, never as the default. Both hand the path to file.open, as macOS does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
18 lines
782 B
XML
18 lines
782 B
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!-- shared-mime-info definitions for FigCraft's own document type and for Sketch files, which
|
|
FigCraft opens (SVG, PNG and JPEG are already in the system database). Installed to /usr/share/mime/packages/ (update-mime-database runs on
|
|
install). -->
|
|
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
|
|
<mime-type type="application/x-figcraft">
|
|
<comment>FigCraft document</comment>
|
|
<icon name="ai.storyteller.figcraft"/>
|
|
<glob pattern="*.figcraft"/>
|
|
</mime-type>
|
|
<!-- Sketch 48 and newer save a zip of JSON. -->
|
|
<mime-type type="application/x-sketch">
|
|
<comment>Sketch document</comment>
|
|
<sub-class-of type="application/zip"/>
|
|
<glob pattern="*.sketch"/>
|
|
</mime-type>
|
|
</mime-info>
|