Warning: session_start(): open(/var/lib/php/sessions/sess_vsgq5c84e6bg7hmq5lvq22epav, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
srecord noeq G22AutoStarter(G22Utils g22utils) > MetaWithChangeListeners {
settableWithVar volatile bool enabled;
new Flag started;
new Flag done;
L scripts = syncL();
event change;
record noeq AutoStartScript(G22LeftArrowScript script) > RunResultWithTimestamps {
run {
// TODO
}
}
void init() {
scripts.clear();
var scripts = conceptsWhere(g22utils.concepts, G22LeftArrowScript, runOnProjectOpen := true);
for (script : scripts)
this.scripts.add(new AutoStartScript(script));
change();
}
void start {
if (enabled && started.raise()) thread {
temp g22utils.backgroundProcessesUI.tempAdd("Auto-Start Scripts", );
for (script : scripts) pcall {
if (!enabled) break;
script.run();
}
done.raise();
}
}
}