Gnome login takes 2 minutes

Hi, my system boots relatively fast to GDM. After I enter my password, it takes about 100 seconds until I see the desktop. I created a new user without home-manager. Same problem there.

I am on nixos-unstable, using zfs filesystem.

How can I debug this?

This should give you an indication of what’s going on:
systemd-analyze blame --user

1 Like
53.211s xdg-desktop-portal.service
51.956s org.gnome.Shell@wayland.service
51.727s xdg-desktop-portal-gnome.service
25.270s evolution-source-registry.service
24.226s gvfs-goa-volume-monitor.service
 3.194s tracker-miner-fs-3.service
 3.072s org.gnome.SettingsDaemon.Wacom.service
 3.067s org.gnome.SettingsDaemon.MediaKeys.service
 3.023s org.gnome.SettingsDaemon.Keyboard.service
 2.941s org.gnome.SettingsDaemon.Power.service
 2.917s org.gnome.SettingsDaemon.Color.service

@peterhoeg Thank you. The xdg.portal.enable was responsible. Disabling portal reduces the login time to a few seconds. I enabled it to make obs studio working under wayland.

It’s ordered in descending order by the time each unit took - it’s not showing the sequence/ordering.

I suggest having a look at the man page for systemd-analyse. There’s a lot of good stuff in there.

1 Like