How to execute a bash script when you log in to GNOME.
If you are a real nerd, and if you want to hear a voice that welcome you to your desktop, this is the solution:
Create a file in ~/.config/autostart/
with the .desktop
extension.
vi .config/autostart/welcome.desktop
Write something like this in the file:
[Desktop Entry]
Name=Welcome
GenericName=Welcome
Comment=Welcome
Exec=/home/youruser/bin/welcomescript.sh
Terminal=false
Type=Application
X-GNOME-Autostart-enabled=true
Then create a script vi /home/youruser/bin/welcomescript.sh
#!/bin/bash
espeak -venglish+f5 Welcome!