How to Create an Autostart Script for GNOME
GNOME uses .desktop files in ~/.config/autostart/ to launch applications when you log in. This mechanism works across GNOME, XFCE, KDE, and most other modern desktop environments. Basic Setup Create a .desktop file in ~/.config/autostart/. Here’s a minimal example: [Desktop Entry] Type=Application Name=My Autostart Script Exec=/home/user/bin/myscript.sh Save this as ~/.config/autostart/myscript.desktop and it will run on your…
