summaryrefslogtreecommitdiff
blob: c9e5e256850ae96d30c2897ce6c6db3511560fcd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
Fix bug #727544 by telling elogind that we're a greeter
===================================================================
--- a/app.cpp
+++ b/app.cpp
@@ -290,6 +290,7 @@
 		pam.start("slim");
 		pam.set_item(PAM::Authenticator::TTY, DisplayName);
 		pam.set_item(PAM::Authenticator::Requestor, "root");
+		pam.setenv("XDG_SESSION_CLASS", "greeter");
 	}
 	catch(PAM::Exception& e){
 		logStream << APPNAME << ": " << e << endl;