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.
" + "This means Enlightenment cannot authenticate
" + "your password. This means locking makes no
" + "sense because we have no other way to authenticate
" + "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])