Commit 5e5f1fc3 authored by guinux's avatar guinux

allow PKGBUILDs to launch subprocesses

parent f0a19dc8
......@@ -43,7 +43,7 @@ namespace Pamac {
protected override async int run_cmd_line (string[] args, string? working_directory, Cancellable cancellable) {
int status = 1;
var launcher = new SubprocessLauncher (SubprocessFlags.NONE);
var launcher = new SubprocessLauncher (SubprocessFlags.STDIN_INHERIT);
if (working_directory != null) {
launcher.set_cwd (working_directory);
}
......
......@@ -764,7 +764,7 @@ namespace Pamac {
public virtual async int run_cmd_line (string[] args, string? working_directory, Cancellable cancellable) {
int status = 1;
var launcher = new SubprocessLauncher (SubprocessFlags.STDOUT_PIPE | SubprocessFlags.STDERR_MERGE);
var launcher = new SubprocessLauncher (SubprocessFlags.STDIN_INHERIT | SubprocessFlags.STDOUT_PIPE | SubprocessFlags.STDERR_MERGE);
if (working_directory != null) {
launcher.set_cwd (working_directory);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment