Page 1 of 1

How do I run this script at startup? [sorted]

Posted: Fri Dec 14, 2012 12:27 pm
by blue_sky
I would like to run this script at startup to configure my dual monitor setup in Mint maya. The script works great but I lose the setting of my primary monitor on reboot.

Code: Select all

xrandr --output DVI-0 --primary
What is the easiest way to do it? Please keep it simple, I'm not that bright.

Re: How do I run this script at startup?

Posted: Fri Dec 14, 2012 12:37 pm
by Z-Xylon
In the Cinnamon Menu, look for Startup Applications. When the startup applications dialog comes up, click on add and where it says command, click on browse and look for the script in the popup file browser. Then give the new startup application a name, and an optional comment and click on add. This should make the script startup automatically when Mint starts.
However, make sure that the script is an executable, by running this in the terminal:

Code: Select all

chmod +x <path-to-file>
obviously replacing <path-to-file> with the actual path to the file.

Hopefully that helped :D

Re: How do I run this script at startup?

Posted: Fri Dec 14, 2012 12:56 pm
by blue_sky
^Works like a charm! Thanks!