mirror of
https://github.com/CachyOS/New-Cli-Installer.git
synced 2025-02-02 22:07:13 +08:00
inherit parent enviroment
This commit is contained in:
parent
bba4767fcb
commit
938904ef31
@ -100,8 +100,7 @@ void exec_follow(const std::vector<std::string>& vec, std::string& process_log,
|
||||
args.push_back(nullptr);
|
||||
|
||||
char** command = args.data();
|
||||
|
||||
if ((ret = subprocess_create(command, subprocess_option_enable_async | subprocess_option_combined_stdout_stderr, &process)) != 0) {
|
||||
if ((ret = subprocess_create(command, subprocess_option_enable_async | subprocess_option_combined_stdout_stderr | subprocess_option_inherit_environment, &process)) != 0) {
|
||||
running = false;
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user