[gnome-terminal/gnome-43] prefs: Add NoDisplay desktop file for the prefs binary



commit 11424208e8ffd426c5f6a66b05d6ff78d8c78a86
Author: Christian Persch <chpe src gnome org>
Date:   Sun Sep 18 18:49:49 2022 +0200

    prefs: Add NoDisplay desktop file for the prefs binary
    
    Backported from master but modified not to include new translatable
    strings.
    
    https://gitlab.gnome.org/GNOME/gnome-terminal/-/issues/7928
    (cherry picked from commit f767de5de87fd9452758d1ad015a3cb6f932b00a)

 data/meson.build                               | 10 ++++++++++
 data/org.gnome.Terminal.Preferences.desktop.in | 14 ++++++++++++++
 po/POTFILES.in                                 |  1 +
 3 files changed, 25 insertions(+)
---
diff --git a/data/meson.build b/data/meson.build
index e0bcbb91..1eda2050 100644
--- a/data/meson.build
+++ b/data/meson.build
@@ -46,6 +46,16 @@ i18n.merge_file(
   install_dir: desktopdatadir,
 )
 
+i18n.merge_file(
+  input: gt_dns_name + '.Preferences.desktop.in',
+  install: true,
+  install_dir: desktopdatadir,
+  install_tag: 'runtime',
+  output: '@BASENAME@',
+  po_dir: po_dir,
+  type: 'desktop',
+)
+
 meson.add_install_script(
   'meson_desktopfile.py',
   desktopdatadir,
diff --git a/data/org.gnome.Terminal.Preferences.desktop.in b/data/org.gnome.Terminal.Preferences.desktop.in
new file mode 100644
index 00000000..5a57bdf7
--- /dev/null
+++ b/data/org.gnome.Terminal.Preferences.desktop.in
@@ -0,0 +1,14 @@
+[Desktop Entry]
+Categories=GNOME;GTK;System;TerminalEmulator;
+Comment=Use the command line
+DBusActivatable=false
+Exec=gnome-terminal --preferences
+Icon=org.gnome.Terminal
+Keywords=shell;prompt;command;commandline;cmd;
+Name=Preferences
+NoDisplay=true
+SingleMainWindow=true
+StartupNotify=true
+StartupWMClass=Gnome-terminal
+TryExec=gnome-terminal
+Type=Application
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 561f5a9e..1c673962 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -1,6 +1,7 @@
 # List of source files containing translatable strings.
 # Please keep this file sorted alphabetically.
 data/org.gnome.Terminal.desktop.in
+data/org.gnome.Terminal.Preferences.desktop.in
 data/org.gnome.Terminal.metainfo.xml.in
 data/org.gnome.Terminal.Nautilus.metainfo.xml.in
 src/org.gnome.Terminal.gschema.xml


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