Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 02 Jul 2026 15:54:26 +0000
From:      Gleb Popov <arrowd@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: c9f3c6eba673 - main - x11/sddm: Pass the environment set by pam_authenticate to the session being started
Message-ID:  <6a4689b2.4752c.25235485@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by arrowd:

URL: https://cgit.FreeBSD.org/ports/commit/?id=c9f3c6eba673745b33a613b2bf8f3e2f3dc56479

commit c9f3c6eba673745b33a613b2bf8f3e2f3dc56479
Author:     Gleb Popov <arrowd@FreeBSD.org>
AuthorDate: 2026-07-02 15:52:50 +0000
Commit:     Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2026-07-02 15:54:16 +0000

    x11/sddm: Pass the environment set by pam_authenticate to the session being started
    
    PR:             296052
    Sponsored by:   Future Crew, LLC
---
 x11/sddm/Makefile                                      |  2 +-
 x11/sddm/files/patch-src_helper_backend_PamBackend.cpp | 12 ++++++++++++
 2 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/x11/sddm/Makefile b/x11/sddm/Makefile
index 5d6522bf1528..33b42d349f8b 100644
--- a/x11/sddm/Makefile
+++ b/x11/sddm/Makefile
@@ -2,7 +2,7 @@ PORTNAME=	sddm
 DISTVERSIONPREFIX=	v
 DISTVERSION=	0.21.0-36
 DISTVERSIONSUFFIX=	-gc2b97dd
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	x11
 
 MAINTAINER=	kde@FreeBSD.org
diff --git a/x11/sddm/files/patch-src_helper_backend_PamBackend.cpp b/x11/sddm/files/patch-src_helper_backend_PamBackend.cpp
new file mode 100644
index 000000000000..18f46c357237
--- /dev/null
+++ b/x11/sddm/files/patch-src_helper_backend_PamBackend.cpp
@@ -0,0 +1,12 @@
+--- src/helper/backend/PamBackend.cpp.orig	2025-01-31 09:57:01 UTC
++++ src/helper/backend/PamBackend.cpp
+@@ -240,6 +240,9 @@ namespace SDDM {
+             m_app->error(m_pam->errorString(), Auth::ERROR_AUTHENTICATION);
+             return false;
+         }
++        QProcessEnvironment sessionEnv = m_app->session()->processEnvironment();
++        sessionEnv.insert(m_pam->getEnv());
++        m_app->session()->setProcessEnvironment(sessionEnv);
+         return true;
+     }
+ 


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a4689b2.4752c.25235485>