summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2022-04-27 21:32:56 +0200
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2022-04-27 21:32:56 +0200
commita674e610ee4f5e4869d29ecd795025ef999f7d8f (patch)
tree2101a0a1791ed9e805a2e93948deae96e4fab79b
parentc99aacdb91fa6b22b25efd7c09ad2601eaf92f03 (diff)
downloadlibnotify-a674e610ee4f5e4869d29ecd795025ef999f7d8f.tar.gz
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.
-rw-r--r--tools/notify-send.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/notify-send.c b/tools/notify-send.c
index a72dc94..926cd11 100644
--- a/tools/notify-send.c
+++ b/tools/notify-send.c
@@ -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);