[libnotify] notify-send: Add debug logs about the notification daemon
- From: Marco Trevisan <marcotrevi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libnotify] notify-send: Add debug logs about the notification daemon
- Date: Thu, 14 Jul 2022 14:56:00 +0000 (UTC)
commit 07a2b2e32c442aa5c3d92f90828f99dcafe45d01
Author: Marco Trevisan (TreviƱo) <mail 3v1n0 net>
Date: Tue May 17 00:32:42 2022 +0200
notify-send: Add debug logs about the notification daemon
tools/notify-send.c | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
---
diff --git a/tools/notify-send.c b/tools/notify-send.c
index 926cd11..aea3435 100644
--- a/tools/notify-send.c
+++ b/tools/notify-send.c
@@ -203,6 +203,10 @@ main (int argc, char *argv[])
static char **n_text = NULL;
static char **hints = NULL;
static char **actions = NULL;
+ static char *server_name = NULL;
+ static char *server_vendor = NULL;
+ static char *server_version = NULL;
+ static char *server_spec_version = NULL;
static gboolean print_id = FALSE;
static gint notification_id = 0;
static gboolean do_version = FALSE;
@@ -310,6 +314,18 @@ main (int argc, char *argv[])
if (!notify_init ("notify-send"))
exit (1);
+ notify_get_server_info (&server_name,
+ &server_vendor,
+ &server_version,
+ &server_spec_version);
+
+ g_debug ("Using sever %s %s, v%s - Supporting Notification Spec %s",
+ server_name, server_vendor, server_version, server_spec_version);
+ g_free (server_name);
+ g_free (server_vendor);
+ g_free (server_version);
+ g_free (server_spec_version);
+
notify = g_object_new (NOTIFY_TYPE_NOTIFICATION,
"summary", summary,
"body", body,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]