Gdm-greeter - Unable to log in with GDM after recent updates

Hi, everyone! I’m using Manjaro with GNOME.

This week a pamac update updated hundreds of packages. When I rebooted, I realized GNOME was updated to 50.

But then I was not able to log in to my user account as usual. The system now automatically logs into a gdm-greeter user. If I try to log out, it then logs into gdm-greeter-1, gdm-greeter-2 and so on. I’m not able to get to GDM.

As a workaround, I switched to tty2 (Ctrl + Alt + F2), installed another display manager (I chose LightDM) and now, with LightDM, I can log into my user. But now I’m not able to lock the screen (without logging out).

What do I need to do to get GDM working again?

Thanks in advance!

I found somebody on the Reddit that had the same problem, and I was able to solve it.

I edited the file /usr/share/gdm/greeter/wayland-sessions/gnome-greeter.desktop.

And replaced:

Exec=gnome-session

By:

Exec=gnome-session --session=gnome-login

Enabled GDM back (as I said, I switched to LightDM):

$ systemctl enable gdm.service --force

And rebooted. Now everything works as usual.

Just for the record, another reference that was useful was the Bug #2143268 at Ubuntu’s Launchpad.

This is going to get overwritten again at the next update.

Nothing under /usr should ever manually be modified — it’s supposed to be a read-only hierarchy.