We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a5a361 commit a251875Copy full SHA for a251875
src/helper/backend/PamBackend.cpp
@@ -251,7 +251,9 @@ namespace SDDM {
251
QProcessEnvironment sessionEnv = m_app->session()->processEnvironment();
252
QString display = sessionEnv.value("DISPLAY");
253
if (!display.isEmpty()) {
254
+#ifdef PAM_XDISPLAY
255
m_pam->setItem(PAM_XDISPLAY, qPrintable(display));
256
+#endif
257
m_pam->setItem(PAM_TTY, qPrintable(display));
258
}
259
if (!m_pam->putEnv(sessionEnv)) {
0 commit comments