mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2025-11-11 13:29:57 -05:00
opt: use spawn_shell to run exec config
This commit is contained in:
parent
b189d7a2be
commit
adabd6dd10
1 changed files with 2 additions and 2 deletions
|
|
@ -820,7 +820,7 @@ void run_exec() {
|
||||||
|
|
||||||
for (int i = 0; i < config.exec_count; i++) {
|
for (int i = 0; i < config.exec_count; i++) {
|
||||||
arg.v = config.exec[i];
|
arg.v = config.exec[i];
|
||||||
spawn(&arg);
|
spawn_shell(&arg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -829,7 +829,7 @@ void run_exec_once() {
|
||||||
|
|
||||||
for (int i = 0; i < config.exec_once_count; i++) {
|
for (int i = 0; i < config.exec_once_count; i++) {
|
||||||
arg.v = config.exec_once[i];
|
arg.v = config.exec_once[i];
|
||||||
spawn(&arg);
|
spawn_shell(&arg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue