start terminal on boot when in debug
This commit is contained in:
parent
be58ed1c05
commit
0d9ce5d6b1
@ -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
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user