add path
This commit is contained in:
parent
45a6cd748a
commit
b393dd46b7
2 changed files with 10 additions and 3 deletions
|
|
@ -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) {
|
||||
//매초 마다 등록된 파일이 있나 체크
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue