[gnome-settings-daemon/benzea/systemd-3-36: 16/24] plugins: Put description into .desktop file



commit ba99dcfbb554554d728ef5e0b0606f8cf444c2d1
Author: Benjamin Berg <bberg redhat com>
Date:   Thu Dec 12 09:15:27 2019 +0100

    plugins: Put description into .desktop file
    
    It seems sensible to use a more human readable description for the
    .desktop file rather than just the plugin name. Hopefully this is more
    useful to anyone expecting the file.

 plugins/meson.build                              | 2 ++
 plugins/org.gnome.SettingsDaemon.Real.desktop.in | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/plugins/meson.build b/plugins/meson.build
index 7c141004..d47f5e27 100644
--- a/plugins/meson.build
+++ b/plugins/meson.build
@@ -65,6 +65,7 @@ subdir('common')
 foreach plugin: all_plugins
   plugin_name = plugin[0]
   plugin_name_case = plugin[1]
+  plugin_description = plugin[2]
   plugin_dbus_name='org.gnome.SettingsDaemon.@0@'.format(plugin_name_case)
 
   desktop = 'org.gnome.SettingsDaemon.@0@.desktop'.format(plugin[1])
@@ -86,6 +87,7 @@ foreach plugin: all_plugins
   desktop_conf.set('libexecdir', gsd_libexecdir)
   desktop_conf.set('systemd_hidden', enable_systemd ? 'true' : 'false')
   desktop_conf.set('pluginname', plugin_name)
+  desktop_conf.set('description', plugin_description)
   configure_file(
     input: desktop_in_file,
     output: desktop,
diff --git a/plugins/org.gnome.SettingsDaemon.Real.desktop.in 
b/plugins/org.gnome.SettingsDaemon.Real.desktop.in
index ae11a86f..3034e712 100644
--- a/plugins/org.gnome.SettingsDaemon.Real.desktop.in
+++ b/plugins/org.gnome.SettingsDaemon.Real.desktop.in
@@ -1,6 +1,6 @@
 [Desktop Entry]
 Type=Application
-Name=GNOME Settings Daemon's @pluginname@ plugin
+Name=@description@
 Exec=@libexecdir@/gsd-@pluginname@
 OnlyShowIn=GNOME;
 NoDisplay=true


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