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



commit f767de5de87fd9452758d1ad015a3cb6f932b00a
Author: Christian Persch <chpe src gnome org>
Date:   Sun Sep 18 18:46:13 2022 +0200

    prefs: Add NoDisplay desktop file for the prefs binary
    
    https://gitlab.gnome.org/GNOME/gnome-terminal/-/issues/7928

 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 4e970207..f53a0b5b 100644
--- a/data/meson.build
+++ b/data/meson.build
@@ -49,6 +49,16 @@ i18n.merge_file(
   install_tag: 'runtime',
 )
 
+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..8b5baf45
--- /dev/null
+++ b/data/org.gnome.Terminal.Preferences.desktop.in
@@ -0,0 +1,14 @@
+[Desktop Entry]
+Categories=GNOME;GTK;System;TerminalEmulator;
+Comment=Configure the command line
+DBusActivatable=false
+Exec=gnome-terminal --preferences
+Icon=org.gnome.Terminal
+Keywords=shell;prompt;command;commandline;cmd;
+Name=Terminal 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]