From 606273e4343ff3bad3f4525f2e2cf6f9fbbd491a Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Fri, 11 May 2018 20:43:15 +0200 Subject: src/user-list.vala: Rename gsettings key remote-service-fqdn to remote-service-configure-uri. Support an empty string as value and show a more intelligent message if it's empty. --- src/settings.vala | 2 +- src/user-list.vala | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/settings.vala b/src/settings.vala index 441035b..0372721 100644 --- a/src/settings.vala +++ b/src/settings.vala @@ -44,7 +44,7 @@ public class AGSettings public const string KEY_GROUP_FILTER = "group-filter"; public const string KEY_IDLE_TIMEOUT = "idle-timeout"; public const string KEY_ACTIVATE_NUMLOCK = "activate-numlock"; - public const string KEY_REMOTE_SERVICE_FQDN = "remote-service-fqdn"; + public const string KEY_REMOTE_SERVICE_CONFIGURE_URI = "remote-service-configure-uri"; public const string KEY_TOGGLEBOX_FONT_FGCOLOR = "togglebox-font-fgcolor"; public const string KEY_TOGGLEBOX_BUTTON_BGCOLOR = "togglebox-button-bgcolor"; public const string KEY_ENABLE_HIDPI = "enable-hidpi"; diff --git a/src/user-list.vala b/src/user-list.vala index cb2be6e..0991703 100644 --- a/src/user-list.vala +++ b/src/user-list.vala @@ -561,7 +561,10 @@ public class UserList : GreeterList else { dialog.add_button (_("OK"), 0); - dialog.text = _("You need a Remote Logon account to use this service. Visit https://%s to set up an account.").printf(AGSettings.get_string (AGSettings.KEY_REMOTE_SERVICE_FQDN)); + if ("" != AGSettings.get_string (AGSettings.KEY_REMOTE_SERVICE_CONFIGURE_URI)) + dialog.text = _("You need a Remote Logon account to use this service. Visit %s to request an account.").printf(AGSettings.get_string (AGSettings.KEY_REMOTE_SERVICE_CONFIGURE_URI)); + else + dialog.text = _("You need a Remote Logon account to use this service. Please ask your site administrator for details."); } dialog.show_all (); -- cgit v1.2.3