| 1 |
From: Ondřej Tůma <[email protected]> |
| 2 |
Date: Tue, 11 Aug 2026 16:26:46 +0200 |
| 3 |
Subject: Align desktop/metainfo filenames with the AppStream component ID |
| 4 |
|
| 5 |
The metainfo file declares the component id cz.zeropage.Formiko and its |
| 6 |
<launchable> element points to cz.zeropage.Formiko.desktop, but the |
| 7 |
shipped files are still named formiko.desktop and formiko.metainfo.xml. |
| 8 |
|
| 9 |
Per current GNOME/freedesktop AppStream conventions the desktop entry |
| 10 |
and metainfo basenames must match the component id, in *every* |
| 11 |
distribution channel (native package or Flatpak alike) so that desktop |
| 12 |
environments can correctly associate and deduplicate the launcher. |
| 13 |
This also fixes two screenshot URLs that were using plain http://. |
| 14 |
|
| 15 |
Reported upstream: https://github.com/ondratu/formiko/issues |
| 16 |
Bug-Debian: (appstream-metadata-validation-failed, metainfo-filename-cid-mismatch) |
| 17 |
Forwarded: yes |
| 18 |
--- |
| 19 |
diff --git a/MANIFEST.in b/MANIFEST.in |
| 20 |
index 0412bc3..045fb03 100644 |
| 21 |
--- a/MANIFEST.in |
| 22 |
+++ b/MANIFEST.in |
| 23 |
@@ -4,7 +4,7 @@ include README.rst |
| 24 |
include COPYING |
| 25 |
include AUTHORS |
| 26 |
include ChangeLog |
| 27 |
-include formiko.desktop |
| 28 |
+include cz.zeropage.Formiko.desktop |
| 29 |
include formiko-vim.desktop |
| 30 |
include formiko.rst |
| 31 |
include formiko-vim.rst |
| 32 |
diff --git a/cz.zeropage.Formiko.desktop b/cz.zeropage.Formiko.desktop |
| 33 |
new file mode 100644 |
| 34 |
index 0000000..5a3a917 |
| 35 |
--- /dev/null |
| 36 |
+++ b/cz.zeropage.Formiko.desktop |
| 37 |
@@ -0,0 +1,11 @@ |
| 38 |
+[Desktop Entry] |
| 39 |
+Type=Application |
| 40 |
+Name=Formiko |
| 41 |
+Comment=reStructuredText and MarkDown editor and live html previewer |
| 42 |
+Exec=formiko %f |
| 43 |
+Icon=formiko |
| 44 |
+StartupWMClass=cz.zeropage.Formiko |
| 45 |
+Terminal=false |
| 46 |
+MimeType=text/plain;text/html;text/x-markdown;text/x-rst;application/json;text/json; |
| 47 |
+Categories=Office;WordProcessor;GNOME;GTK; |
| 48 |
+Keywords=Text;Editor;MarkDown;reStructuredText;Documentation;Markup; |
| 49 |
diff --git a/cz.zeropage.Formiko.metainfo.xml b/cz.zeropage.Formiko.metainfo.xml |
| 50 |
new file mode 100644 |
| 51 |
index 0000000..6411d4a |
| 52 |
--- /dev/null |
| 53 |
+++ b/cz.zeropage.Formiko.metainfo.xml |
| 54 |
@@ -0,0 +1,77 @@ |
| 55 |
+<?xml version="1.0" encoding="UTF-8"?> |
| 56 |
+<!-- Copyright 2026 Ondřej Tůma --> |
| 57 |
+<component type="desktop-application"> |
| 58 |
+ <id>cz.zeropage.Formiko</id> |
| 59 |
+ <name>Formiko</name> |
| 60 |
+ <summary>reStructuredText and Markdown editor</summary> |
| 61 |
+ <provides> |
| 62 |
+ <mediatype>text/plain</mediatype> |
| 63 |
+ <mediatype>text/html</mediatype> |
| 64 |
+ <mediatype>text/x-markdown</mediatype> |
| 65 |
+ <mediatype>text/x-rst</mediatype> |
| 66 |
+ <mediatype>application/json</mediatype> |
| 67 |
+ <mediatype>text/json</mediatype> |
| 68 |
+ </provides> |
| 69 |
+ <content_rating type="oars-1.1"/> |
| 70 |
+ <requires> |
| 71 |
+ <id version="47" compare="ge">org.gnome.Platform</id> |
| 72 |
+ </requires> |
| 73 |
+ <releases> |
| 74 |
+ <release version="2.0.0" type="stable" date="2026-08-11"> |
| 75 |
+ <url>https://github.com/ondratu/formiko/releases/tag/2.0.0</url> |
| 76 |
+ </release> |
| 77 |
+ <release version="1.5.0" type="stable" date="2024-11-14"> |
| 78 |
+ <url>https://github.com/ondratu/formiko/releases/tag/1.5.0</url> |
| 79 |
+ </release> |
| 80 |
+ <release version="1.4.3" type="stable" date="2019-12-10"> |
| 81 |
+ <url>https://github.com/ondratu/formiko/releases/tag/1.4.3</url> |
| 82 |
+ </release> |
| 83 |
+ <release version="1.4.2" type="stable" date="2019-12-02"> |
| 84 |
+ <url>https://github.com/ondratu/formiko/releases/tag/1.4.2</url> |
| 85 |
+ </release> |
| 86 |
+ <release version="1.4.0" type="stable" date="2019-11-06"> |
| 87 |
+ <url>https://github.com/ondratu/formiko/releases/tag/1.4.0</url> |
| 88 |
+ </release> |
| 89 |
+ </releases> |
| 90 |
+ <url type="homepage">https://formiko.zeropage.cz</url> |
| 91 |
+ <url type="bugtracker">https://github.com/ondratu/formiko/issues</url> |
| 92 |
+ <url type="vcs-browser">https://formiko.zeropage.cz</url> |
| 93 |
+ <launchable type="desktop-id">cz.zeropage.Formiko.desktop</launchable> |
| 94 |
+ <metadata_license>MIT</metadata_license> |
| 95 |
+ <project_license>BSD-3-Clause</project_license> |
| 96 |
+ <description> |
| 97 |
+ <p>Formiko is a reStructuredText and Markdown editor and live previewer. |
| 98 |
+ It is written in Python with GTK4, libadwaita, GtkSourceView and WebKit. Uses |
| 99 |
+ Docutils and m2r2 Markdown parser.</p> |
| 100 |
+ <p>Features:</p> |
| 101 |
+ <ul> |
| 102 |
+ <li>GtkSourceView based editor with syntax highlighting</li> |
| 103 |
+ <li>Optional Vim editor support</li> |
| 104 |
+ <li>Vertical or horizontal window splitting</li> |
| 105 |
+ <li>Preview mode with auto scroll</li> |
| 106 |
+ <li>Periodic file save</li> |
| 107 |
+ <li>JSON and HTML preview</li> |
| 108 |
+ <li>Spell check</li> |
| 109 |
+ <li>Linked file opening</li> |
| 110 |
+ </ul> |
| 111 |
+ </description> |
| 112 |
+ <screenshots> |
| 113 |
+ <screenshot type="default" width="1000" height="700"> |
| 114 |
+ <caption>Main window showing the editor and live preview side by side.</caption> |
| 115 |
+ <image>https://formiko.zeropage.cz/assets/gtk4.png</image> |
| 116 |
+ </screenshot> |
| 117 |
+ <screenshot width="1260" height="700"> |
| 118 |
+ <caption>JSON file rendered in the built-in preview.</caption> |
| 119 |
+ <image>https://formiko.zeropage.cz/assets/json.png</image> |
| 120 |
+ </screenshot> |
| 121 |
+ |
| 122 |
+ </screenshots> |
| 123 |
+ <branding> |
| 124 |
+ <color type="primary" scheme_preference="light">#ebebeb</color> |
| 125 |
+ <color type="primary" scheme_preference="dark">#828282</color> |
| 126 |
+ </branding> |
| 127 |
+ <developer id="cz.zeropage"> |
| 128 |
+ <name>Ondřej Tůma</name> |
| 129 |
+ </developer> |
| 130 |
+ <update_contact>[email protected]</update_contact> |
| 131 |
+</component> |
| 132 |
diff --git a/formiko.desktop b/formiko.desktop |
| 133 |
deleted file mode 100644 |
| 134 |
index 5a3a917..0000000 |
| 135 |
--- a/formiko.desktop |
| 136 |
+++ /dev/null |
| 137 |
@@ -1,11 +0,0 @@ |
| 138 |
-[Desktop Entry] |
| 139 |
-Type=Application |
| 140 |
-Name=Formiko |
| 141 |
-Comment=reStructuredText and MarkDown editor and live html previewer |
| 142 |
-Exec=formiko %f |
| 143 |
-Icon=formiko |
| 144 |
-StartupWMClass=cz.zeropage.Formiko |
| 145 |
-Terminal=false |
| 146 |
-MimeType=text/plain;text/html;text/x-markdown;text/x-rst;application/json;text/json; |
| 147 |
-Categories=Office;WordProcessor;GNOME;GTK; |
| 148 |
-Keywords=Text;Editor;MarkDown;reStructuredText;Documentation;Markup; |
| 149 |
diff --git a/formiko.metainfo.xml b/formiko.metainfo.xml |
| 150 |
deleted file mode 100644 |
| 151 |
index 74693f4..0000000 |
| 152 |
--- a/formiko.metainfo.xml |
| 153 |
+++ /dev/null |
| 154 |
@@ -1,77 +0,0 @@ |
| 155 |
-<?xml version="1.0" encoding="UTF-8"?> |
| 156 |
-<!-- Copyright 2026 Ondřej Tůma --> |
| 157 |
-<component type="desktop-application"> |
| 158 |
- <id>cz.zeropage.Formiko</id> |
| 159 |
- <name>Formiko</name> |
| 160 |
- <summary>reStructuredText and Markdown editor</summary> |
| 161 |
- <provides> |
| 162 |
- <mediatype>text/plain</mediatype> |
| 163 |
- <mediatype>text/html</mediatype> |
| 164 |
- <mediatype>text/x-markdown</mediatype> |
| 165 |
- <mediatype>text/x-rst</mediatype> |
| 166 |
- <mediatype>application/json</mediatype> |
| 167 |
- <mediatype>text/json</mediatype> |
| 168 |
- </provides> |
| 169 |
- <content_rating type="oars-1.1"/> |
| 170 |
- <requires> |
| 171 |
- <id version="47" compare="ge">org.gnome.Platform</id> |
| 172 |
- </requires> |
| 173 |
- <releases> |
| 174 |
- <release version="2.0.0" type="stable" date="2026-08-11"> |
| 175 |
- <url>https://github.com/ondratu/formiko/releases/tag/2.0.0</url> |
| 176 |
- </release> |
| 177 |
- <release version="1.5.0" type="stable" date="2024-11-14"> |
| 178 |
- <url>https://github.com/ondratu/formiko/releases/tag/1.5.0</url> |
| 179 |
- </release> |
| 180 |
- <release version="1.4.3" type="stable" date="2019-12-10"> |
| 181 |
- <url>https://github.com/ondratu/formiko/releases/tag/1.4.3</url> |
| 182 |
- </release> |
| 183 |
- <release version="1.4.2" type="stable" date="2019-12-02"> |
| 184 |
- <url>https://github.com/ondratu/formiko/releases/tag/1.4.2</url> |
| 185 |
- </release> |
| 186 |
- <release version="1.4.0" type="stable" date="2019-11-06"> |
| 187 |
- <url>https://github.com/ondratu/formiko/releases/tag/1.4.0</url> |
| 188 |
- </release> |
| 189 |
- </releases> |
| 190 |
- <url type="homepage">https://formiko.zeropage.cz</url> |
| 191 |
- <url type="bugtracker">https://github.com/ondratu/formiko/issues</url> |
| 192 |
- <url type="vcs-browser">https://formiko.zeropage.cz</url> |
| 193 |
- <launchable type="desktop-id">cz.zeropage.Formiko.desktop</launchable> |
| 194 |
- <metadata_license>MIT</metadata_license> |
| 195 |
- <project_license>BSD-3-Clause</project_license> |
| 196 |
- <description> |
| 197 |
- <p>Formiko is a reStructuredText and Markdown editor and live previewer. |
| 198 |
- It is written in Python with GTK4, libadwaita, GtkSourceView and WebKit. Uses |
| 199 |
- Docutils and m2r2 Markdown parser.</p> |
| 200 |
- <p>Features:</p> |
| 201 |
- <ul> |
| 202 |
- <li>GtkSourceView based editor with syntax highlighting</li> |
| 203 |
- <li>Optional Vim editor support</li> |
| 204 |
- <li>Vertical or horizontal window splitting</li> |
| 205 |
- <li>Preview mode with auto scroll</li> |
| 206 |
- <li>Periodic file save</li> |
| 207 |
- <li>JSON and HTML preview</li> |
| 208 |
- <li>Spell check</li> |
| 209 |
- <li>Linked file opening</li> |
| 210 |
- </ul> |
| 211 |
- </description> |
| 212 |
- <screenshots> |
| 213 |
- <screenshot type="default" width="1000" height="700"> |
| 214 |
- <caption>Main window showing the editor and live preview side by side.</caption> |
| 215 |
- <image>http://formiko.zeropage.cz/assets/gtk4.png</image> |
| 216 |
- </screenshot> |
| 217 |
- <screenshot width="1260" height="700"> |
| 218 |
- <caption>JSON file rendered in the built-in preview.</caption> |
| 219 |
- <image>http://formiko.zeropage.cz/assets/json.png</image> |
| 220 |
- </screenshot> |
| 221 |
- |
| 222 |
- </screenshots> |
| 223 |
- <branding> |
| 224 |
- <color type="primary" scheme_preference="light">#ebebeb</color> |
| 225 |
- <color type="primary" scheme_preference="dark">#828282</color> |
| 226 |
- </branding> |
| 227 |
- <developer id="cz.zeropage"> |
| 228 |
- <name>Ondřej Tůma</name> |
| 229 |
- </developer> |
| 230 |
- <update_contact>[email protected]</update_contact> |
| 231 |
-</component> |
| 232 |
diff --git a/setup.py b/setup.py |
| 233 |
index 50b57ad..186d4f2 100644 |
| 234 |
--- a/setup.py |
| 235 |
+++ b/setup.py |
| 236 |
@@ -221,8 +221,8 @@ class CheckVersion(Command): |
| 237 |
return None |
| 238 |
|
| 239 |
def read_metainfo(self): |
| 240 |
- """Read last version from formiko.metainfo.xml.""" |
| 241 |
- with open("formiko.metainfo.xml", encoding="utf-8") as meta: |
| 242 |
+ """Read last version from cz.zeropage.Formiko.metainfo.xml.""" |
| 243 |
+ with open("cz.zeropage.Formiko.metainfo.xml", encoding="utf-8") as meta: |
| 244 |
for line in meta: |
| 245 |
if "<release " in line: |
| 246 |
vals = dict( |
| 247 |
@@ -239,8 +239,8 @@ setup( |
| 248 |
"share/doc/formiko", |
| 249 |
["README.rst", "COPYING", "ChangeLog", "AUTHORS"], |
| 250 |
), |
| 251 |
- ("share/applications", ["formiko.desktop", "formiko-vim.desktop"]), |
| 252 |
- ("share/metainfo", ["formiko.metainfo.xml"]), |
| 253 |
+ ("share/applications", ["cz.zeropage.Formiko.desktop", "formiko-vim.desktop"]), |
| 254 |
+ ("share/metainfo", ["cz.zeropage.Formiko.metainfo.xml"]), |
| 255 |
("share/formiko/icons", ["icons/formiko.svg"]), |
| 256 |
*icons_data(), |
| 257 |
], |