I have a program which does not quite play nice: it's a fullscreen program, and when it starts, it turns off all monitors except the primary monitor.
Is there some way to for instance create a start script which checks which monitors are on, and then turns them back on again, after the application has quit?