[systemd-commits] src/gnome-ask-password-agent.vala
Lennart Poettering
lennart at kemper.freedesktop.org
Thu Mar 10 16:51:52 PST 2011
src/gnome-ask-password-agent.vala | 11 +++--------
1 file changed, 3 insertions(+), 8 deletions(-)
New commits:
commit 820fa964859bab12bc8b6afea980399c71e34f5b
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Mar 11 01:51:45 2011 +0100
gnome-ask-password-agent: fix path to watch
diff --git a/src/gnome-ask-password-agent.vala b/src/gnome-ask-password-agent.vala
index 1bc97f5..75cfabf 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/.run/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,12 +239,7 @@ public class MyStatusIcon : StatusIcon {
null);
OutputStream stream = new UnixOutputStream(to_process, true);
-
-#if LIBNOTIFY07
stream.write(password.data, null);
-#else
- stream.write(password, password.length, null);
-#endif
} catch (Error e) {
show_error(e.message);
}
More information about the systemd-commits
mailing list