Elevated Commands Redesign (#1123)
This commit is contained in:
parent
18ab7dcf6c
commit
430a439698
17 changed files with 568 additions and 425 deletions
|
|
@ -159,8 +159,7 @@ namespace platf {
|
|||
}
|
||||
|
||||
bp::child
|
||||
run_unprivileged(const std::string &cmd, boost::filesystem::path &working_dir, bp::environment &env, FILE *file, std::error_code &ec, bp::group *group) {
|
||||
BOOST_LOG(warning) << "run_unprivileged() is not yet implemented for this platform. The new process will run with Sunshine's permissions."sv;
|
||||
run_command(bool elevated, const std::string &cmd, boost::filesystem::path &working_dir, bp::environment &env, FILE *file, std::error_code &ec, bp::group *group) {
|
||||
if (!group) {
|
||||
if (!file) {
|
||||
return bp::child(cmd, env, bp::start_dir(working_dir), bp::std_out > bp::null, bp::std_err > bp::null, ec);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue