Enlightenment CVS committal
Author : raster
Project : e17
Module : apps/e
Dir : e17/apps/e/src/bin
Modified Files:
e_desklock.c
Log Message:
fix e if pam is NOT built so desklock aborts with a dialog.
add in a system pam profiel detector
===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_desklock.c,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -3 -r1.31 -r1.32
--- e_desklock.c 7 Jan 2007 09:01:47 -0000 1.31
+++ e_desklock.c 7 Jan 2007 09:22:21 -0000 1.32
@@ -126,6 +126,12 @@
int total_zone_num;
+#ifndef HAVE_PAM
+ e_util_dialog_show(_("Error - no PAM support"),
+ _("No PAM support was built into Enlightenment, so<br>"
+ "desk locking is disabled."));
+ return 0;
+#endif
if (_e_custom_saver_exe) return 0;
if (e_config->desklock_use_custom_screensaver)
@@ -697,6 +703,7 @@
else if (ecore_file_exists("/etc/pam.d/xscreensaver")) pam_prof =
"xscreensaver";
else if (ecore_file_exists("/etc/pam.d/kscreensaver")) pam_prof =
"kscreensaver";
else if (ecore_file_exists("/etc/pam.d/system-auth")) pam_prof =
"system-auth";
+ else if (ecore_file_exists("/etc/pam.d/system")) pam_prof = "system";
if ((pamerr = pam_start(pam_prof, da->user, &(da->pam.conv),
&(da->pam.handle))) != PAM_SUCCESS)
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs