summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorLogan Rathbone <poprocks@gmail.com>2022-01-09 23:18:20 -0500
committerLogan Rathbone <poprocks@gmail.com>2022-01-10 02:06:40 -0500
commit73a1fd232d5c1a7aa2ccc0d429d141dd1250c296 (patch)
tree681d12b0429f21089404e09e0bb2d90d4ad97f53 /data
parent6da301644c82049dc7d0b4a701a481000379893f (diff)
downloadzenity-73a1fd232d5c1a7aa2ccc0d429d141dd1250c296.tar.gz
notification: Initial port to GNotification
Port from libnotify, which is deprecated. Some features are yet missing, but this is a start. This drops libnotify as a dependency; meson files updated accordingly.
Diffstat (limited to 'data')
-rw-r--r--data/meson.build26
-rw-r--r--data/org.gnome.Zenity.desktop.in11
2 files changed, 37 insertions, 0 deletions
diff --git a/data/meson.build b/data/meson.build
index c85889e..04cfc15 100644
--- a/data/meson.build
+++ b/data/meson.build
@@ -1 +1,27 @@
+# .desktop file
+
+desktop_file = i18n.merge_file(
+ input: '@0@.desktop.in'.format(app_id),
+ output: '@0@.desktop'.format(app_id),
+ po_dir: zenity_po_dir,
+ type: 'desktop',
+ install_dir: join_paths(zenity_datadir, 'applications'),
+ install: true
+)
+
+desktop_file_validate_prg = find_program(
+ 'desktop-file-validate',
+ required: false
+)
+
+if desktop_file_validate_prg.found()
+ test(
+ 'Validate desktop file',
+ desktop_file_validate_prg,
+ args: [desktop_file]
+ )
+endif
+
+# manpage
+
install_man('zenity.1')
diff --git a/data/org.gnome.Zenity.desktop.in b/data/org.gnome.Zenity.desktop.in
new file mode 100644
index 0000000..1e3411e
--- /dev/null
+++ b/data/org.gnome.Zenity.desktop.in
@@ -0,0 +1,11 @@
+[Desktop Entry]
+# Translators: Do NOT translate or transliterate this text (this is a variable that will be replaced with the app name)!
+Name=Zenity
+Comment=Display dialog boxes from the command line
+Exec=zenity
+Terminal=false
+Type=Application
+NoDisplay=true
+StartupNotify=true
+DBusActivatable=true
+X-GNOME-UsesNotifications=true