Hi folks. I have trouble in my fedora 41 installation. I already post a topic on the fedora discourse. But I wan’t to know the exact reason why the gdm service will fail with the message Gdm: GdmSession: no session desktop files installed, aborting. where the gdm services look for these session files ?
on the journal messages there is another message (gnome-shell) crashed in drisw_init_screen()
This looks like the gnome-shell instance launched by gdm is failing to start due to driver issues. The crash happens in the Mesa software renderer, which normally shouldn’t even be used.
Maybe that was a Wayland instance (though I’m not entirely sure how DRI would get used there) and gdm is now trying to fall back to X11 and your distro only has Wayland sessions installed by default? I think there was a change in Fedora 41 to drop X11 sessions from the default install.
As a workaround to get the X11 fallback working again try installing gnome-session-xsession, but that won’t solve the driver issue, which seems like the actual problem here.
oh this make sense, there is not files on the /usr/share/xsession. I will try to install that package.
but in this case the gdm should load a default session instead of breaking. I don’t know nothing about these session files. but breaking for missing configuration file is bad.
If there is not session the program must load a default one. is it reasonable ?
Because the actual binary that the session launches is from another package.
Hardcoding something like “if there are no sessions, assume a session named “GNOME” that launches the “gnome-session” binary” won’t help you if said binary is missing.
Since we are talking about the fallback X11 session for when the default Wayland session is not working, this would only work if an X server is installed. Now you would have to include some fallback X server with some fallback drivers all stuffed in the gdm package if you don’t want any external dependencies outside of gdm…
Those directories are used by default on systems where Wayland is supported. But it seems on your system there are graphics driver issues which might be causing this to fail.