Enable autostart of Applications
To automatically launch a application or script upon the login to your desktop session, you need to create a few files and put them into the right location.
In this tutorial, we will autoload a script located in
Create a launcher file
Open up a text editor and put the following in:
Description=Sets the Display resolution and scale
Adopt the Exec path to reflect your actual home directory. The last two lines aren’t really necessary, but give you some kind of freedom to enable/disable autostart and optionally set a launch delay.
Save this file as
Mark the launcher as trusted
Open up a Terminal and enter:
chmod 755 ~/.config/autostart/SetResolution.desktop
gio set ~/.config/autostart/SetResolution.desktop metadata::trusted yes