x11-misc/sddm: only set SDDM_INITIAL_VT with elogind

Bug: https://bugs.gentoo.org/956850
Bug: https://bugs.gentoo.org/956847
Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Paul Zander
2025-05-30 20:40:43 +02:00
committed by Sam James
parent 43610d61b0
commit d462f92e60

View File

@@ -102,10 +102,16 @@ src_configure() {
-DSYSTEMD_TMPFILES_DIR="/usr/lib/tmpfiles.d"
-DNO_SYSTEMD=$(usex !systemd)
-DUSE_ELOGIND=$(usex elogind)
# try to use VT7 first.
# Keep the same as CHECKVT from display-manager
-DSDDM_INITIAL_VT=7
)
if use elogind; then
mycmakeargs+=(
# try to use VT7 first.
# Keep the same as CHECKVT from display-manager
-DSDDM_INITIAL_VT=7
)
fi
cmake_src_configure
}