chiark / gitweb /
util: include `stdarg.h`
[elogind.git] / src / gnome-ask-password-agent.vala
index 4f89a3e6d8bb8f1c70052fe32b12736e82e03110..c31c07e3db0de0f21f4963f543698a0a0cb1f651 100644 (file)
@@ -91,7 +91,7 @@ public class MyStatusIcon : StatusIcon {
                 GLib.Object(icon_name : "dialog-password");
                 set_title("System Password Request");
 
-                directory = File.new_for_path("/var/run/systemd/ask-password/");
+                directory = File.new_for_path("/run/systemd/ask-password/");
                 file_monitor = directory.monitor_directory(0);
                 file_monitor.changed.connect(file_monitor_changed);
 
@@ -165,7 +165,7 @@ public class MyStatusIcon : StatusIcon {
                         if (not_after_as_string.scanf("%llu", out not_after) != 1)
                                 return false;
 
-                        if (not_after < now)
+                        if (not_after > 0 && not_after < now)
                                 return false;
 
                         socket = key_file.get_string("Ask", "Socket");