From: Ondřej Tůma Date: Tue, 11 Aug 2026 16:26:46 +0200 Subject: Align desktop/metainfo filenames with the AppStream component ID The metainfo file declares the component id cz.zeropage.Formiko and its element points to cz.zeropage.Formiko.desktop, but the shipped files are still named formiko.desktop and formiko.metainfo.xml. Per current GNOME/freedesktop AppStream conventions the desktop entry and metainfo basenames must match the component id, in *every* distribution channel (native package or Flatpak alike) so that desktop environments can correctly associate and deduplicate the launcher. This also fixes two screenshot URLs that were using plain http://. Reported upstream: https://github.com/ondratu/formiko/issues Bug-Debian: (appstream-metadata-validation-failed, metainfo-filename-cid-mismatch) Forwarded: yes --- diff --git a/MANIFEST.in b/MANIFEST.in index 0412bc3..045fb03 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -4,7 +4,7 @@ include README.rst include COPYING include AUTHORS include ChangeLog -include formiko.desktop +include cz.zeropage.Formiko.desktop include formiko-vim.desktop include formiko.rst include formiko-vim.rst diff --git a/cz.zeropage.Formiko.desktop b/cz.zeropage.Formiko.desktop new file mode 100644 index 0000000..5a3a917 --- /dev/null +++ b/cz.zeropage.Formiko.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Type=Application +Name=Formiko +Comment=reStructuredText and MarkDown editor and live html previewer +Exec=formiko %f +Icon=formiko +StartupWMClass=cz.zeropage.Formiko +Terminal=false +MimeType=text/plain;text/html;text/x-markdown;text/x-rst;application/json;text/json; +Categories=Office;WordProcessor;GNOME;GTK; +Keywords=Text;Editor;MarkDown;reStructuredText;Documentation;Markup; diff --git a/cz.zeropage.Formiko.metainfo.xml b/cz.zeropage.Formiko.metainfo.xml new file mode 100644 index 0000000..6411d4a --- /dev/null +++ b/cz.zeropage.Formiko.metainfo.xml @@ -0,0 +1,77 @@ + + + + cz.zeropage.Formiko + Formiko + reStructuredText and Markdown editor + + text/plain + text/html + text/x-markdown + text/x-rst + application/json + text/json + + + + org.gnome.Platform + + + + https://github.com/ondratu/formiko/releases/tag/2.0.0 + + + https://github.com/ondratu/formiko/releases/tag/1.5.0 + + + https://github.com/ondratu/formiko/releases/tag/1.4.3 + + + https://github.com/ondratu/formiko/releases/tag/1.4.2 + + + https://github.com/ondratu/formiko/releases/tag/1.4.0 + + + https://formiko.zeropage.cz + https://github.com/ondratu/formiko/issues + https://formiko.zeropage.cz + cz.zeropage.Formiko.desktop + MIT + BSD-3-Clause + +

Formiko is a reStructuredText and Markdown editor and live previewer. + It is written in Python with GTK4, libadwaita, GtkSourceView and WebKit. Uses + Docutils and m2r2 Markdown parser.

+

Features:

+
    +
  • GtkSourceView based editor with syntax highlighting
  • +
  • Optional Vim editor support
  • +
  • Vertical or horizontal window splitting
  • +
  • Preview mode with auto scroll
  • +
  • Periodic file save
  • +
  • JSON and HTML preview
  • +
  • Spell check
  • +
  • Linked file opening
  • +
+
+ + + Main window showing the editor and live preview side by side. + https://formiko.zeropage.cz/assets/gtk4.png + + + JSON file rendered in the built-in preview. + https://formiko.zeropage.cz/assets/json.png + + + + + #ebebeb + #828282 + + + Ondřej Tůma + + mcbig@zeropage.cz +
diff --git a/formiko.desktop b/formiko.desktop deleted file mode 100644 index 5a3a917..0000000 --- a/formiko.desktop +++ /dev/null @@ -1,11 +0,0 @@ -[Desktop Entry] -Type=Application -Name=Formiko -Comment=reStructuredText and MarkDown editor and live html previewer -Exec=formiko %f -Icon=formiko -StartupWMClass=cz.zeropage.Formiko -Terminal=false -MimeType=text/plain;text/html;text/x-markdown;text/x-rst;application/json;text/json; -Categories=Office;WordProcessor;GNOME;GTK; -Keywords=Text;Editor;MarkDown;reStructuredText;Documentation;Markup; diff --git a/formiko.metainfo.xml b/formiko.metainfo.xml deleted file mode 100644 index 74693f4..0000000 --- a/formiko.metainfo.xml +++ /dev/null @@ -1,77 +0,0 @@ - - - - cz.zeropage.Formiko - Formiko - reStructuredText and Markdown editor - - text/plain - text/html - text/x-markdown - text/x-rst - application/json - text/json - - - - org.gnome.Platform - - - - https://github.com/ondratu/formiko/releases/tag/2.0.0 - - - https://github.com/ondratu/formiko/releases/tag/1.5.0 - - - https://github.com/ondratu/formiko/releases/tag/1.4.3 - - - https://github.com/ondratu/formiko/releases/tag/1.4.2 - - - https://github.com/ondratu/formiko/releases/tag/1.4.0 - - - https://formiko.zeropage.cz - https://github.com/ondratu/formiko/issues - https://formiko.zeropage.cz - cz.zeropage.Formiko.desktop - MIT - BSD-3-Clause - -

Formiko is a reStructuredText and Markdown editor and live previewer. - It is written in Python with GTK4, libadwaita, GtkSourceView and WebKit. Uses - Docutils and m2r2 Markdown parser.

-

Features:

-
    -
  • GtkSourceView based editor with syntax highlighting
  • -
  • Optional Vim editor support
  • -
  • Vertical or horizontal window splitting
  • -
  • Preview mode with auto scroll
  • -
  • Periodic file save
  • -
  • JSON and HTML preview
  • -
  • Spell check
  • -
  • Linked file opening
  • -
-
- - - Main window showing the editor and live preview side by side. - http://formiko.zeropage.cz/assets/gtk4.png - - - JSON file rendered in the built-in preview. - http://formiko.zeropage.cz/assets/json.png - - - - - #ebebeb - #828282 - - - Ondřej Tůma - - mcbig@zeropage.cz -
diff --git a/setup.py b/setup.py index 50b57ad..186d4f2 100644 --- a/setup.py +++ b/setup.py @@ -221,8 +221,8 @@ class CheckVersion(Command): return None def read_metainfo(self): - """Read last version from formiko.metainfo.xml.""" - with open("formiko.metainfo.xml", encoding="utf-8") as meta: + """Read last version from cz.zeropage.Formiko.metainfo.xml.""" + with open("cz.zeropage.Formiko.metainfo.xml", encoding="utf-8") as meta: for line in meta: if "