Start script bash on start system/session

Ok, I had to try this out myself (after reading the Spanish thread on this subject). Works as intended, I'd say:

What I did:

  1. Copy-pasted the script from your code above to /home/myusername/Lataukset/Pruebas.sh (Lataukset = Descargas in Finnish, the localized Downloads folder).
    #!/bin/bash sleep 10 notify-send "Se ha iniciado el sistema" --expire-time=14000 sleep 15 exit

  2. I made the script executable by the user (chmod 744 ~/Lataukset/Pruebas.sh)

  3. Added the script to Startup applications:

  1. Rebooted.

The notification appeared after 10 seconds of sleep, as intended - 5 seconds before my Conky came up (it's set to wait for 15 seconds).

1 Like