[vino/wip/ne0sight/persistent-notifications] notifications: increase timeout of connection approve notification
- From: Yuri Konotopov <ykonotopov src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vino/wip/ne0sight/persistent-notifications] notifications: increase timeout of connection approve notification
- Date: Tue, 25 Feb 2020 05:40:03 +0000 (UTC)
commit fd15ceeeaa7d2f5b1b1b2a525d597635b3d7e642
Author: Yuri Konotopov <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]