# Autologin with greetd sometimes not working

**URL:** <https://forum.endeavouros.com/t/autologin-with-greetd-sometimes-not-working/63740>\
**Category:** All WMs\
**Created:** [November 30, 2024, 7:39pm UTC](https://forum.endeavouros.com/t/autologin-with-greetd-sometimes-not-working/63740 "2024-11-30T19:39:09Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![BluishHumility](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/bluishhumility/32/70412_2.png) [@BluishHumility](https://forum.endeavouros.com/u/BluishHumility)\
**Post date:** [December 5, 2024, 11:42am UTC](https://forum.endeavouros.com/t/autologin-with-greetd-sometimes-not-working/63740/2 "2024-12-05T11:42:32Z")

</div>

I wonder if the timing of the session startup is affecting autologin. Perhaps sometimes the system is not fully ready when `greetd` tries to log in the user, so it fails.

Try adding a delay to the autologin command and see if it makes any difference.

```auto
[initial_session]
command = "sh -c 'sleep 2; sway'"
user = "sjiep"

```

---

_[View the full topic](https://forum.endeavouros.com/t/autologin-with-greetd-sometimes-not-working/63740)._
