Skip to content

Commit

Permalink
Drop .GUI from metainfo.xml file
Browse files Browse the repository at this point in the history
This file is mostly used by packaging tools, such as flatpak, to get
info about the application. Since flatpak uses org.gnome.Hamster as the
main package id, the metainfo.xml must be named the same for it to be
used.

Possibly more things need to be renamed for all application ids to be
consistent, but it is non-obvious what the best approach is there (see
also #725 for details). For now, this pragmatically renames metainfo.xml
to ensure it is found by flatpak.
  • Loading branch information
matthijskooijman committed Nov 18, 2023
1 parent ff7ece5 commit 611b121
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop-application">
<id>org.gnome.Hamster.GUI</id>
<id>org.gnome.Hamster</id>
<metadata_license>CC0-1.0</metadata_license>
<project_license>GPL-3.0+ and CC-BY-SA-3.0</project_license>
<name>Hamster</name>
Expand Down
2 changes: 1 addition & 1 deletion data/wscript
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def build(ctx):
ctx(features='glib2',
settings_schema_files=['org.gnome.hamster.gschema.xml'])

ctx.install_files('${DATADIR}/metainfo', 'org.gnome.Hamster.GUI.metainfo.xml')
ctx.install_files('${DATADIR}/metainfo', 'org.gnome.Hamster.metainfo.xml')

filename = "org.gnome.Hamster.GUI.desktop"
ctx(features = "subst",
Expand Down

0 comments on commit 611b121

Please sign in to comment.