[totem/wip/hadess/devel-flatpak: 2/3] data: Fix appdata filename in devel profile




commit 30253c7d9ca4bafd798c2cca8f43b8c19fbbb0b3
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Feb 2 12:00:03 2022 +0100

    data: Fix appdata filename in devel profile

 data/appdata/meson.build                       | 13 ++++-
 data/appdata/org.gnome.Totem.appdata.xml.in    | 79 --------------------------
 data/appdata/org.gnome.Totem.appdata.xml.in.in |  4 +-
 3 files changed, 12 insertions(+), 84 deletions(-)
---
diff --git a/data/appdata/meson.build b/data/appdata/meson.build
index c2e646327..c9014299d 100644
--- a/data/appdata/meson.build
+++ b/data/appdata/meson.build
@@ -1,8 +1,15 @@
-appdata = 'org.gnome.Totem.appdata.xml'
+source_appdata = 'org.gnome.Totem.appdata.xml'
+dest_appdata = application_id + '.appdata.xml'
+
+appdata_in = configure_file(
+  input: source_appdata + '.in.in',
+  output: source_appdata + '.in',
+  configuration: desktop_conf
+)
 
 appdata_file = i18n.merge_file (
-    input: appdata + '.in',
-    output: appdata,
+    input: appdata_in,
+    output: dest_appdata,
     install: true,
     install_dir: join_paths(totem_datadir, 'metainfo'),
     po_dir: po_dir,)
diff --git a/data/appdata/org.gnome.Totem.appdata.xml.in.in b/data/appdata/org.gnome.Totem.appdata.xml.in.in
index c73543cd5..b766ad10a 100644
--- a/data/appdata/org.gnome.Totem.appdata.xml.in.in
+++ b/data/appdata/org.gnome.Totem.appdata.xml.in.in
@@ -2,7 +2,7 @@
 <!-- Copyright 2013 Richard Hughes <richard hughsie com>
      Copyright 2013 William Jon McCann <william jon mccann gmail com> -->
 <component type="desktop-application">
-  <id>org.gnome.Totem.desktop</id>
+  <id>@application_id@.desktop</id>
   <name>Videos</name>
   <summary>Play movies</summary>
   <metadata_license>CC0-1.0</metadata_license>
@@ -33,7 +33,7 @@
   <developer_name>The GNOME developers</developer_name>
   <project_group>GNOME</project_group>
   <translation type="gettext">totem</translation>
-  <launchable type="desktop-id">org.gnome.Totem.desktop</launchable>
+  <launchable type="desktop-id">@application_id@.desktop</launchable>
   <releases>
     <release version="3.38.0" date="2020-09-10">
       <description>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]