[vino/wip/ne0sight/persistent-notifications] notifications: increase timeout of connection approve notification



commit b9aea231a88edf558b8bc0d553514bc9b7862d61
Author: Yuri <ykonotopov gnome org>
Date:   Tue Feb 25 08:16:38 2020 +0300

    notifications: increase timeout of connection approve notification
    
    As for now Vino doesn't set any timeout of connection prompt notification.
    This is not real problem (rather, this is an inconvenience) for GNOME Shell
    since it supports persistent notifications, however for other DEs without
    persistent notifications support this is lead to inability to accept remote
    connection at all.
    This patch sets 3 minute notification timeout which will allow to react in
    time to the notification (for DEs that supports notification timeout).
    
    Fixes: https://gitlab.gnome.org/GNOME/vino/issues/3

 server/vino-prompt.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/server/vino-prompt.c b/server/vino-prompt.c
index 67314ae..b3a7469 100644
--- a/server/vino-prompt.c
+++ b/server/vino-prompt.c
@@ -292,6 +292,7 @@ vino_prompt_display (VinoPrompt   *prompt,
   prompt->priv->notification = notify_notification_new (_("Another user is trying to view your desktop."),
                                                        host_label,
                                                        "preferences-desktop-remote-desktop");
+  notify_notification_set_timeout (prompt->priv->notification, 3*60*1000);
   notify_notification_set_hint_string (prompt->priv->notification, "desktop-entry", "vino-server");
   notify_notification_add_action (prompt->priv->notification,
                                  "refuse",


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]