How to autostart script on Gnome 40 Wayland session launch?

I used to be able to have a script in ~/Documents/scripts/autostart.sh, that’s run from a Desktop file in ~/.config/autostart/startup.desktop, and then add that Desktop entry in the Startup Apps of the Gnome Tweaks app.

now, I can’t find my Desktop entry in the Startup Apps of the Gnome Tweaks app, and I also can’t run gnome-session-properties. Since this new issue I changed computers and I’m now on Gnome 40 and Wayland. The previous computer was set up with Gnome 3.36 I think, was updated to Gnome 40 later, and was using Xorg

I saw this thread Autostart shell script under Gnome with wayland that talks about using a user service, and I like the idea of using a systemd service, but I have no idea how I would do that.

here’s my ~/.config/autostart/startup.desktop:

[Desktop Entry]
Name=Startup script
GenericName=A script that runs at Gnome startup
Comment=Runs the script in Exec path
Exec=~/Documents/scripts/autostart.sh
Terminal=false
Type=Application
X-GNOME-Autostart-enabled=true

here’s my ~/.config/systemd/user/startup.service`:

[Unit]
Description=Auto start script at Gnome startup

[Service]
ExecStart=~/Documents/scripts/autostart.sh

[Install]
WantedBy=default.target