[sysprof] build: make appdata/desktop files use dynamic app-id
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sysprof] build: make appdata/desktop files use dynamic app-id
- Date: Fri, 22 Jul 2022 19:55:19 +0000 (UTC)
commit 59c196e0f1d20b1ccff409cf52ffdb17a9eee6ee
Author: Christian Hergert <chergert redhat com>
Date: Fri Jul 22 12:55:12 2022 -0700
build: make appdata/desktop files use dynamic app-id
This ensures we get the right app-id based on -Ddevelopment=true.
data/meson.build | 18 ++++++++++++++----
...appdata.xml => org.gnome.Sysprof.appdata.xml.in.in} | 2 +-
...prof.desktop.in => org.gnome.Sysprof.desktop.in.in} | 2 +-
3 files changed, 16 insertions(+), 6 deletions(-)
---
diff --git a/data/meson.build b/data/meson.build
index 82a13646..c0e4b721 100644
--- a/data/meson.build
+++ b/data/meson.build
@@ -3,17 +3,27 @@ if get_option('gtk') and get_option('libsysprof')
install_dir: join_paths(datadir, 'mime/packages')
)
+ appdata_in = configure_file(
+ input: 'org.gnome.Sysprof.appdata.xml.in.in',
+ output: 'org.gnome.Sysprof.appdata.xml.in',
+ configuration: config_h,
+ )
i18n.merge_file(
- input: 'org.gnome.Sysprof.appdata.xml.in',
- output: 'org.gnome.Sysprof.appdata.xml',
+ input: appdata_in,
+ output: '@0 appdata xml'.format(app_id),
po_dir: podir,
install: true,
install_dir: join_paths(datadir, 'metainfo')
)
+ desktop_in = configure_file(
+ input: 'org.gnome.Sysprof.desktop.in.in',
+ output: 'org.gnome.Sysprof.desktop.in',
+ configuration: config_h,
+ )
i18n.merge_file(
- input: 'org.gnome.Sysprof.desktop.in',
- output: 'org.gnome.Sysprof.desktop',
+ input: desktop_in,
+ output: '@0@.desktop'.format(app_id),
type: 'desktop',
po_dir: podir,
install: true,
diff --git a/data/org.gnome.Sysprof.appdata.xml b/data/org.gnome.Sysprof.appdata.xml.in.in
similarity index 97%
rename from data/org.gnome.Sysprof.appdata.xml
rename to data/org.gnome.Sysprof.appdata.xml.in.in
index 586a85ab..3a1bb4d2 100644
--- a/data/org.gnome.Sysprof.appdata.xml
+++ b/data/org.gnome.Sysprof.appdata.xml.in.in
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop-application">
- <id>org.gnome.Sysprof.desktop</id>
+ <id>@APP_ID@.desktop</id>
<translation type="gettext">sysprof</translation>
<name>Sysprof</name>
<summary>Profile an application or entire system</summary>
diff --git a/data/org.gnome.Sysprof.desktop.in b/data/org.gnome.Sysprof.desktop.in.in
similarity index 93%
rename from data/org.gnome.Sysprof.desktop.in
rename to data/org.gnome.Sysprof.desktop.in.in
index 24e36a9c..14e999e7 100644
--- a/data/org.gnome.Sysprof.desktop.in
+++ b/data/org.gnome.Sysprof.desktop.in.in
@@ -6,7 +6,7 @@ Comment=Profile an application or entire system.
Exec=sysprof %u
TryExec=sysprof
# Translators: Do NOT translate or transliterate this text (this is an icon file name)!
-Icon=org.gnome.Sysprof
+Icon=@APP_ID@
StartupNotify=true
Terminal=false
Type=Application
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]