Skip to content

Commit

Permalink
Issue #1 - Rename mime files and icons
Browse files Browse the repository at this point in the history
- Added rename-mime-file and rename-mime-icons.

#1
  • Loading branch information
hfiguiere committed Oct 22, 2023
1 parent 25ab1d4 commit 132c181
Show file tree
Hide file tree
Showing 15 changed files with 441 additions and 27 deletions.
12 changes: 12 additions & 0 deletions data/flatpak-manifest.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1451,10 +1451,22 @@
"description": "Any appdata (metainfo) file with this name will be renamed to a name based on id during the cleanup phase.",
"type": "string"
},
"rename-mime-file": {
"description": "Any mimetypes file with this name will me renamed to a name based on id during the cleanup phase.",
"type": "string"
},
"rename-icon": {
"description": "Any icon with this name will be renamed to a name based on id during the cleanup phase. Note that this is the icon name, not the full filenames, so it should not include a filename extension.",
"type": "string"
},
"rename-mime-icons": {
"type": "array",
"description": "Any mime icons with any of these names will be renamed to a name prefixed with id during the cleanup phase. Note that this is the icon name, not the full filenames, so it should not include a filename extension.",
"items": {
"description": "Icon name to rename.",
"type": "string"
}
},
"appdata-license": {
"description": "Replace the appdata (metainfo) project_license field with this string. This is useful as the upstream license is typically only about the application itself, whereas the bundled app can contain other licenses too.",
"type": "string"
Expand Down
8 changes: 8 additions & 0 deletions doc/flatpak-manifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -261,10 +261,18 @@
<term><option>rename-appdata-file</option> (string)</term>
<listitem><para>Any appdata (metainfo) file with this name will be renamed to a name based on id during the cleanup phase.</para></listitem>
</varlistentry>
<varlistentry>
<term><option>rename-mime-file</option> (string)</term>
<listitem><para>Any mimetypes file with this name will me renamed to a name based on id during the cleanup phase. (since 1.4.0)</para></listitem>
</varlistentry>
<varlistentry>
<term><option>rename-icon</option> (string)</term>
<listitem><para>Any icon with this name will be renamed to a name based on id during the cleanup phase. Note that this is the icon name, not the full filenames, so it should not include a filename extension. </para></listitem>
</varlistentry>
<varlistentry>
<term><option>rename-mime-icons</option> (array of string)</term>
<listitem><para>Any mime icons with any of these names will be renamed to a name prefixed with id during the cleanup phase. Note that this is the icon name, not the full filenames, so it should not include a filename extension. (since 1.4.0)</para></listitem>
</varlistentry>
<varlistentry>
<term><option>appdata-license</option> (string)</term>
<listitem><para>Replace the appdata (metainfo)
Expand Down
Loading

0 comments on commit 132c181

Please sign in to comment.