From 0d9ce5d6b185de031e7272577681716517539c5b Mon Sep 17 00:00:00 2001 From: Niklas Kapelle Date: Tue, 13 Aug 2024 00:11:37 +0200 Subject: [PATCH] start terminal on boot when in debug --- src/Startup.hx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Startup.hx b/src/Startup.hx index 1f4d15f..da7eac8 100644 --- a/src/Startup.hx +++ b/src/Startup.hx @@ -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 } }