start terminal on boot when in debug

This commit is contained in:
Niklas Kapelle 2024-08-13 00:11:37 +02:00
parent be58ed1c05
commit 0d9ce5d6b1
Signed by: niklas
GPG Key ID: 4EB651B36D841D16

View File

@ -6,6 +6,14 @@ import lib.HomeContext;
class Startup {
public static function main() {
#if debug
var term = BinStore.instantiate("terminal");
var pid = ProcessManager.run(term, {
// args: ["debug"]
});
var ctx = WindowManager.getContextByPID(pid);
WindowManager.focusContextToOutput(ctx[0], "main");
#else
if (MainTerm.instance.isColor()) {
var main = new HomeContext();
@ -16,5 +24,6 @@ class Startup {
var ctx = WindowManager.getContextByPID(pid);
WindowManager.focusContextToOutput(ctx[0], "main");
}
#end
}
}