gnome- session-properties
Add, corresponding to the script. Here Xavier needs to set up automatic startup without entering a password.
Sometimes sudo permissions are required in the script, or a password is required, so it can be written like this
echo "000" | sudo -S ./你要启动的脚本.sh