[meld/flatpak-ci: 27/31] Make our desktop file templated for profile-based icon use
- From: Kai Willadsen <kaiw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [meld/flatpak-ci: 27/31] Make our desktop file templated for profile-based icon use
- Date: Fri, 29 Nov 2019 21:15:10 +0000 (UTC)
commit ad1f9785d9620fa3fd2e2c4efc99f8d087155ea0
Author: Kai Willadsen <kai willadsen gmail com>
Date: Sun Nov 17 06:26:49 2019 +1000
Make our desktop file templated for profile-based icon use
data/meson.build | 11 +++++++++--
...org.gnome.meld.desktop.in => org.gnome.meld.desktop.in.in} | 2 +-
2 files changed, 10 insertions(+), 3 deletions(-)
---
diff --git a/data/meson.build b/data/meson.build
index f6733d83..acfdcf43 100644
--- a/data/meson.build
+++ b/data/meson.build
@@ -12,8 +12,15 @@ install_data(
)
# Install desktop file
-desktop_file = i18n.merge_file(
- input: '@0 desktop in'.format(application_id),
+desktop_conf = configuration_data()
+desktop_conf.set('icon', application_id)
+
+desktop = i18n.merge_file(
+ input: configure_file(
+ input: '@0 desktop in in'.format(resource_base_id),
+ output: '@0 desktop in'.format(application_id),
+ configuration: desktop_conf
+ ),
output: '@0@.desktop'.format(application_id),
po_dir: podir,
type: 'desktop',
diff --git a/data/org.gnome.meld.desktop.in b/data/org.gnome.meld.desktop.in.in
similarity index 95%
rename from data/org.gnome.meld.desktop.in
rename to data/org.gnome.meld.desktop.in.in
index 3c225252..b2d67a0c 100644
--- a/data/org.gnome.meld.desktop.in
+++ b/data/org.gnome.meld.desktop.in.in
@@ -8,7 +8,7 @@ Exec=meld %F
Terminal=false
Type=Application
# TRANSLATORS: Do NOT translate or transliterate this text (this is an icon file name)!
-Icon=org.gnome.meld
+Icon=@icon@
MimeType=application/x-meld-comparison;
StartupNotify=true
Categories=GTK;Development;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]