You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sddm when using [Autologin] currently requires the desktop environment to be hardcoded in the Session=xfce.
broken:
[Autologin]
User=user
functional:
[Autologin]
User=user
Session=xfce
environment:
Debian bullseye
sddm 0.19.0
File /usr/share/xsessions/xfce.desktop exits.
No other desktop environment besides Xfce installed.
bug report:
Even if Session=xfce is not set, sddm should autologin into Xfce.
Seems like auto detection of the desktop environment is failing.
By comparison, gdm3 display manager does not require a hardcoded Session=xfce setting. But of course sddm is nicer because it has much leaner dependencies.
The text was updated successfully, but these errors were encountered:
bool Display::attemptAutologin() {
Session::Type sessionType = Session::X11Session;
// determine session type
QString autologinSession = mainConfig.Autologin.Session.get();
// not configured: try last successful logged in
if (autologinSession.isEmpty()) {
autologinSession = stateConfig.Last.Session.get();
}
if (findSessionEntry(mainConfig.Wayland.SessionDir.get(), autologinSession)) {
sessionType = Session::WaylandSession;
} else if (findSessionEntry(mainConfig.X11.SessionDir.get(), autologinSession)) {
sessionType = Session::X11Session;
} else {
qCritical() << "Unable to find autologin session entry" << autologinSession;
return false;
}
The closest thing to auto detection is findSessionEntry but it requires two variables:
A) dir (mainConfig.Wayland.SessionDir.get() or mainConfig.X11.SessionDir.get()) and
B) name (autologinSession) (the name of the desktop environment such as xfce)
The dirs are already built-in (/usr/share/wayland-sessions / /usr/share/xsessions/xfce.desktop).
As for name it's currently not auto detected. Let's say there is just a single file in folder /usr/share/wayland-sessions (preferably) or folder /usr/share/xsessions (such as for example /usr/share/xsessions/xfce.desktop) then it's not auto detected.
If autlogin session is not specified explicitly, sddm tries to use the last session from /var/lib/sddm/state.conf. sddm stores full pathname in this file, so findSessionEntry always returns TRUE when checking file existence (for absolute filename this QDir method ignores actual directory). Because sddm first checks Wayland directory, it always assumes session type is wayland and attempts to start X11 session using Wayland script that fails.
sddm when using
[Autologin]
currently requires the desktop environment to be hardcoded in theSession=xfce
.broken:
functional:
environment:
bullseye
0.19.0
/usr/share/xsessions/xfce.desktop
exits.bug report:
Even if
Session=xfce
is not set, sddm should autologin into Xfce.Seems like auto detection of the desktop environment is failing.
By comparison, gdm3 display manager does not require a hardcoded
Session=xfce
setting. But of course sddm is nicer because it has much leaner dependencies.The text was updated successfully, but these errors were encountered: