<?xml version="1.0" encoding="UTF-8"?>
<!--
  shared-mime-info package for FunGen's two document types.

  Linux desktops resolve a .desktop file's MimeType= entries through the
  freedesktop MIME database; an extension only maps to a MIME type if a
  package like this declares the glob. Without it, double-clicking a
  .funscript / .fungen does nothing even with the .desktop installed.

  Both formats are JSON on disk, so each sub-classes application/json
  (right-click "Open with" still groups them under text/JSON handlers,
  but the FunGen entry wins as the default once xdg-mime sets it).

  Installed to ~/.local/share/mime/packages/ then registered with
  `update-mime-database` by packaging/linux/install.sh.
-->
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
  <mime-type type="application/x-funscript">
    <comment>Funscript haptic track</comment>
    <sub-class-of type="application/json"/>
    <glob pattern="*.funscript"/>
    <icon name="fungen"/>
  </mime-type>
  <mime-type type="application/x-fungen-project">
    <comment>FunGen project</comment>
    <sub-class-of type="application/json"/>
    <glob pattern="*.fungen"/>
    <icon name="fungen"/>
  </mime-type>
</mime-info>
