This fixes an issue where the tray icon disappears after the notification is closed, though no action has been triggered and there is still a password to enter. --- src/gnome-ask-password-agent.vala | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/src/gnome-ask-password-agent.vala b/src/gnome-ask-password-agent.vala index 8a5346d..4d852c2 100644 --- a/src/gnome-ask-password-agent.vala +++ b/src/gnome-ask-password-agent.vala @@ -80,6 +80,7 @@ public class MyStatusIcon : StatusIcon { string socket; PasswordDialog password_dialog; + Notification n; public MyStatusIcon() throws GLib.Error { GLib.Object(icon_name : "dialog-password"); @@ -182,10 +183,11 @@ public class MyStatusIcon : StatusIcon { } set_from_icon_name(icon); - set_visible(true); - - Notification n = new Notification(title, message, icon); + n = new Notification(title, message, icon); n.set_timeout(5000); + n.closed.connect(() => { + set_visible(true); + }); n.show(); return true; -- 1.8.3.4 _______________________________________________ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel