notify-send: Add debug logs about the notification daemon
This commit is contained in:
parent
8ce5daac4f
commit
07a2b2e32c
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue