aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/arctica-greeter.vala56
1 files changed, 50 insertions, 6 deletions
diff --git a/src/arctica-greeter.vala b/src/arctica-greeter.vala
index 3800f67..1a500e6 100644
--- a/src/arctica-greeter.vala
+++ b/src/arctica-greeter.vala
@@ -59,7 +59,16 @@ public class ArcticaGreeter
greeter = new LightDM.Greeter ();
greeter.show_message.connect ((text, type) => { show_message (text, type); });
greeter.show_prompt.connect ((text, type) => { show_prompt (text, type); });
- greeter.autologin_timer_expired.connect (() => { greeter.authenticate_autologin (); });
+ greeter.autologin_timer_expired.connect (() => {
+ try
+ {
+ greeter.authenticate_autologin ();
+ }
+ catch (Error e)
+ {
+ warning ("Failed to autologin authenticate: %s", e.message);
+ }
+ });
greeter.authentication_complete.connect (() => { authentication_complete (); });
var connected = false;
try
@@ -258,27 +267,62 @@ public class ArcticaGreeter
public void authenticate (string? userid = null)
{
- greeter.authenticate (userid);
+ try
+ {
+ greeter.authenticate (userid);
+ }
+ catch (Error e)
+ {
+ warning ("Failed to authenticate: %s", e.message);
+ }
}
public void authenticate_as_guest ()
{
- greeter.authenticate_as_guest ();
+ try
+ {
+ greeter.authenticate_as_guest ();
+ }
+ catch (Error e)
+ {
+ warning ("Failed to authenticate as guest: %s", e.message);
+ }
}
public void authenticate_remote (string? session, string? userid)
{
- ArcticaGreeter.singleton.greeter.authenticate_remote (session, userid);
+ try
+ {
+ ArcticaGreeter.singleton.greeter.authenticate_remote (session, userid);
+ }
+ catch (Error e)
+ {
+ warning ("Failed to remote authenticate: %s", e.message);
+ }
}
public void cancel_authentication ()
{
- greeter.cancel_authentication ();
+ try
+ {
+ greeter.cancel_authentication ();
+ }
+ catch (Error e)
+ {
+ warning ("Failed to cancel authentication: %s", e.message);
+ }
}
public void respond (string response)
{
- greeter.respond (response);
+ try
+ {
+ greeter.respond (response);
+ }
+ catch (Error e)
+ {
+ warning ("Failed to respond: %s", e.message);
+ }
}
public string authentication_user ()