notify-send: Add debug message about server not supporting persistence

In case a transient notification is requested but persistence is not
supported, it's not an error but it is useful to show a debug message
to clarify that.
This commit is contained in:
Marco Trevisan (Treviño) 2022-04-27 21:32:56 +02:00
parent c99aacdb91
commit a674e610ee
1 changed files with 6 additions and 0 deletions

View File

@ -325,6 +325,12 @@ main (int argc, char *argv[])
if (transient) {
notify_notification_set_hint (notify, "transient",
g_variant_new_boolean (TRUE));
if (!server_has_capability ("persistence")) {
g_debug ("Persistence is not supported by the "
"notifications server. "
"All notifications are transient.");
}
}
g_free (body);