mirror of
https://github.com/hyprwm/hyprutils.git
synced 2026-05-03 16:28:17 +02:00
os/process: add env to async calls too
This commit is contained in:
parent
38f3a21165
commit
d46bd32da5
1 changed files with 5 additions and 0 deletions
|
|
@ -206,6 +206,11 @@ bool Hyprutils::OS::CProcess::runAsync() {
|
|||
|
||||
argsC.emplace_back(nullptr);
|
||||
|
||||
// pass env
|
||||
for (auto& [n, v] : m_impl->env) {
|
||||
setenv(n.c_str(), v.c_str(), 1);
|
||||
}
|
||||
|
||||
if (m_impl->stdoutFD != -1)
|
||||
dup2(m_impl->stdoutFD, 1);
|
||||
if (m_impl->stderrFD != -1)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue