X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fgnome-ask-password-agent.vala;h=4f89a3e6d8bb8f1c70052fe32b12736e82e03110;hp=84f25497309b97c905851839b9d35371230d556e;hb=90df7e567f668b4d0e7761fd15fa8cebffc759a0;hpb=26742b3fd8776c6c64e3c1035adc2599ddeb76d1 diff --git a/src/gnome-ask-password-agent.vala b/src/gnome-ask-password-agent.vala index 84f254973..4f89a3e6d 100644 --- a/src/gnome-ask-password-agent.vala +++ b/src/gnome-ask-password-agent.vala @@ -89,9 +89,9 @@ public class MyStatusIcon : StatusIcon { public MyStatusIcon() throws GLib.Error { GLib.Object(icon_name : "dialog-password"); - set_title("System Password"); + set_title("System Password Request"); - directory = File.new_for_path("/dev/.systemd/ask-password/"); + directory = File.new_for_path("/var/run/systemd/ask-password/"); file_monitor = directory.monitor_directory(0); file_monitor.changed.connect(file_monitor_changed); @@ -145,7 +145,6 @@ public class MyStatusIcon : StatusIcon { if (current == null) set_visible(false); - } bool load_password() throws GLib.Error { @@ -179,6 +178,7 @@ public class MyStatusIcon : StatusIcon { } catch (GLib.Error e) { message = "Please Enter System Password!"; } + set_tooltip_text(message); try { @@ -239,8 +239,7 @@ public class MyStatusIcon : StatusIcon { null); OutputStream stream = new UnixOutputStream(to_process, true); - -#if LIBNOTIFY07 +#if VALA_0_12 stream.write(password.data, null); #else stream.write(password, password.length, null);