head 1.1; access; symbols pkgsrc-2026Q1:1.1.0.2 pkgsrc-2026Q1-base:1.1; locks; strict; comment @// @; 1.1 date 2025.12.30.04.00.09; author gutteridge; state Exp; branches; next ; commitid b48VDjz0YiLMUnoG; desc @@ 1.1 log @x11/sddm: add new package, version 0.21.0 Packaged in wip by Stepan Ipatov. (Review and minor changes by me.) SDDM is a modern display manager for X11 and Wayland aiming to be fast, simple and beautiful. It uses modern technologies like QtQuick, which in turn gives the designer the ability to create smooth, animated user interfaces. SDDM is extremely themeable. We put no restrictions on the user interface design, it is completely up to the designer. We simply provide a few callbacks to the user interface which can be used for authentication, suspend, etc. @ text @$NetBSD$ Setting up user context on NetBSD systems. --- src/helper/UserSession.cpp.orig 2024-02-26 10:23:03.000000000 +0000 +++ src/helper/UserSession.cpp @@@@ -39,7 +39,7 @@@@ #include #include #include -#ifdef Q_OS_FREEBSD +#if defined(Q_OS_FREEBSD) || defined(Q_OS_NETBSD) #include #endif @@@@ -275,7 +275,7 @@@@ namespace SDDM { exit(Auth::HELPER_OTHER_ERROR); } -#if defined(Q_OS_FREEBSD) +#if defined(Q_OS_FREEBSD) || defined(Q_OS_NETBSD) // execve() uses the environment prepared in Backend::openSession(), // therefore environment variables which are set here are ignored. if (setusercontext(NULL, &pw, pw.pw_uid, LOGIN_SETALL) != 0) { @@@@ -341,7 +341,7 @@@@ namespace SDDM { qCritical() << "setuid(" << pw.pw_uid << ") failed for user: " << username; exit(Auth::HELPER_OTHER_ERROR); } -#endif /* Q_OS_FREEBSD */ +#endif /* defined(Q_OS_FREEBSD) || defined(Q_OS_NETBSD) */ if (chdir(pw.pw_dir) != 0) { qCritical() << "chdir(" << pw.pw_dir << ") failed for user: " << username; qCritical() << "verify directory exist and has sufficient permissions"; @