This commit is contained in:
Toki 2024-12-27 01:02:35 +09:00
parent 45a6cd748a
commit b393dd46b7
2 changed files with 10 additions and 3 deletions

View file

@ -276,6 +276,13 @@ class SchedulerManager {
//======================== other process ========================//
Future start() async {
var zprofile = File('$userPath/.zprofile');
if(zprofile.existsSync()) {
_log(zprofile.readAsStringSync());
var shell = StringBuffer('source ${zprofile.path}');
await ProcessExecutor.start(shell);
}
_log('Scheduler is running on pid [$pid].');
while(true) {
//

View file

@ -16,10 +16,10 @@ class Shell extends Command {
}
if(data.setMessage == null) {
var process = await ProcessExecutor.start(shell, workspace: workspace, logHandler: Application.logWithType);
var process = await ProcessExecutor.start(shell, logHandler: Application.logWithType);
return await completeProcess(process, command);
} else {
var process = await ProcessExecutor.run(shell, workspace: workspace, logHandler: Application.logWithType);
var process = await ProcessExecutor.run(shell, logHandler: Application.logWithType);
var str = process.stdout.toString();
var length = str.length;
str = str.substring(0, length - 1);
@ -40,7 +40,7 @@ class ShellFile extends Command {
} else {
shell.writeln('source $path');
}
var process = await ProcessExecutor.start(shell, workspace: workspace, logHandler: Application.logWithType);
var process = await ProcessExecutor.start(shell, logHandler: Application.logWithType);
return await completeProcess(process, command);
}