aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2018-03-20 19:31:12 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2018-03-22 12:16:47 +0900
commit8b03df8b309d7315e396219a5cb32bfb9693165a (patch)
tree5d268fe430d5c29c7b284c06463f8015ca51d332
parentdesklock - make it fail to lock on non-bsd platforms if no pam support (diff)
downloadenlightenment-8b03df8b309d7315e396219a5cb32bfb9693165a.tar.gz
e desklock pam error - go back to previous text
since we had translations of this, go back to the prior text so we keep these. also dont show if using a personal password. related to fixing https://phab.enlightenment.org/T6779
-rw-r--r--src/bin/e_desklock.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/bin/e_desklock.c b/src/bin/e_desklock.c
index 0e6cc3d71..1c428748a 100644
--- a/src/bin/e_desklock.c
+++ b/src/bin/e_desklock.c
@@ -248,13 +248,13 @@ e_desklock_show(Eina_Bool suspend)
E_Zone *zone;
#if !defined(HAVE_PAM) && !defined(__FreeBSD__) && !defined(__OpenBSD__)
- e_util_dialog_show(_("Cannot use password authentication"),
- _("Enlightenment was built without PAM support.<br>"
- "This means Enlightenment cannot authenticate<br>"
- "your password. This means locking makes no<br>"
- "sense because we have no other way to authenticate<br>"
- "you as a user."));
- return EINA_FALSE;
+ if (!e_desklock_is_personal())
+ {
+ e_util_dialog_show(_("Error - no PAM support"),
+ _("No PAM support was built into Enlightenment, so<ps/>"
+ "desk locking is disabled."));
+ return EINA_FALSE;
+ }
#endif
if (_e_desklock_state) return EINA_TRUE;