aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/e_desklock.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/e_desklock.c')
-rw-r--r--src/bin/e_desklock.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/bin/e_desklock.c b/src/bin/e_desklock.c
index 7b99fccfa..0e6cc3d71 100644
--- a/src/bin/e_desklock.c
+++ b/src/bin/e_desklock.c
@@ -247,6 +247,15 @@ e_desklock_show(Eina_Bool suspend)
E_Desklock_Hide_Cb hide_cb;
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;
+#endif
if (_e_desklock_state) return EINA_TRUE;
if (e_desklock_is_external() && e_config->desklock_custom_desklock_cmd && e_config->desklock_custom_desklock_cmd[0])