How to autostart script on Gnome 40 Wayland session launch?

Paths in systemd service files must be absolute:

...
[Service]
ExecStart=/home/araly/Documents/scripts/autostart.sh
...

It should complain about that in your journal.

Don’t forget to run systemctl --user daemon-reload after changing the file.
Enable the service with:
systemctl --user enable startup.service

1 Like