Files
wordcraft/packaging/linux/ai.storyteller.wordcraft.metainfo.xml.in
T
ba9bbb48dd Open Word documents with WordCraft by default (file associations + Options button) (#304)
* Open Word documents with WordCraft from the system (#295)

Register WordCraft for Word, RTF and ODT files on Windows and Linux without
taking over anyone's defaults, and add File > Options > General > "Make
WordCraft the default for Word documents..." where the system allows it.

- Windows MSI: a ProgId per type (.docx .docm .dotx .dotm .doc .dot .rtf
  .odt, plus .md and .txt as Open With candidates only) with the app icon
  and `"wordcraft.exe" "%1"`, OpenWithProgids, Applications\wordcraft.exe
  SupportedTypes, and Capabilities + RegisteredApplications so WordCraft
  shows in Settings > Default apps. New component with its own GUID.
- Linux: the desktop entry declares the macro-enabled, template and legacy
  Word types and text/rtf; AppStream lists the media types. deb, rpm,
  AppImage and both Flatpak manifests use this same file.
- macOS: Info.plist also lists legacy .doc.
- The Options button runs `ui.makeDefaultApp` through a new
  Services::make_default_app hook: Windows opens
  ms-settings:defaultapps on WordCraft's page; Linux and BSD run
  `xdg-mime default ai.storyteller.wordcraft.desktop <types>` (refused
  inside Flatpak or without an installed desktop entry); macOS shows the
  Finder Get Info hint; the web shows nothing. The status bar reports the
  outcome. Strings translated in every catalog.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Review fixes for #304: keep Make default out of programmatic dispatch

ui.makeDefaultApp is refused when run programmatically (control channel, MCP, macros,
scripts); only a click on File > Options > General > Make WordCraft the default… reaches
the host's hook, so no agent can change the user's system default apps or open system
settings. Test: programmatic_calls_cannot_change_the_default_apps.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Default-app strings in the newer catalogs; the button's test looks for a General-pane label

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Brandon Thomas <echelon@gmail.com>
2026-10-12 04:30:57 -04:00

70 lines
3.0 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<!-- AppStream metadata (software centres, Flathub). Template: package.sh and the Flatpak
manifest substitute @VERSION@ and @DATE@ from Cargo.toml and the build date. -->
<component type="desktop-application">
<id>ai.storyteller.wordcraft</id>
<metadata_license>CC0-1.0</metadata_license>
<project_license>MIT OR Apache-2.0</project_license>
<name>WordCraft</name>
<summary>Write and design documents; open and save Word files</summary>
<developer id="ai.storyteller">
<name>Learning Machines LLC</name>
</developer>
<description>
<p>
WordCraft is a fast, open-source word processor with a familiar ribbon: styles, tables, track changes, references, mail merge, and .docx, PDF, ODT, RTF, HTML and Markdown files. It can be driven by AI agents over MCP.
</p>
</description>
<launchable type="desktop-id">ai.storyteller.wordcraft.desktop</launchable>
<icon type="stock">ai.storyteller.wordcraft</icon>
<!-- Only url types known to appstream 0.15 (Ubuntu 22.04, where CI validates): no vcs-browser. -->
<url type="homepage">https://getartcraft.com/apps/wordcraft</url>
<url type="bugtracker">https://github.com/storytold/wordcraft/issues</url>
<url type="help">https://github.com/storytold/wordcraft</url>
<url type="contact">https://discord.gg/artcraft</url>
<categories>
<category>Office</category>
<category>WordProcessor</category>
</categories>
<keywords>
<keyword>word processor</keyword>
<keyword>docx</keyword>
<keyword>document</keyword>
<keyword>writer</keyword>
</keywords>
<screenshots>
<screenshot type="default">
<caption>The Open Studio Handbook sample with the Navigation pane</caption>
<image>https://raw.githubusercontent.com/storytold/wordcraft/main/docs/images/hero.png</image>
</screenshot>
</screenshots>
<branding>
<color type="primary" scheme_preference="light">#b9c7f5</color>
<color type="primary" scheme_preference="dark">#2b47b5</color>
</branding>
<requires>
<display_length compare="ge">760</display_length>
</requires>
<supports>
<control>keyboard</control>
<control>pointing</control>
<control>tablet</control>
</supports>
<!-- Document types WordCraft opens (#295), as in the desktop entry's MimeType=. -->
<provides>
<binary>wordcraft</binary>
<mediatype>application/vnd.openxmlformats-officedocument.wordprocessingml.document</mediatype>
<mediatype>application/vnd.ms-word.document.macroEnabled.12</mediatype>
<mediatype>application/vnd.openxmlformats-officedocument.wordprocessingml.template</mediatype>
<mediatype>application/vnd.ms-word.template.macroEnabled.12</mediatype>
<mediatype>application/msword</mediatype>
<mediatype>application/msword-template</mediatype>
<mediatype>application/vnd.oasis.opendocument.text</mediatype>
<mediatype>application/rtf</mediatype>
</provides>
<content_rating type="oars-1.1"/>
<releases>
<release version="@VERSION@" date="@DATE@"/>
</releases>
</component>