diff options
author | Aylur <[email protected]> | 2024-12-20 22:27:25 +0100 |
---|---|---|
committer | Aylur <[email protected]> | 2024-12-20 22:27:25 +0100 |
commit | 53bfc0929d62263547c1282b388040b9616a377e (patch) | |
tree | 2b2c776ecc57209179203eb7b8638ee7502a286e /lib/astal/io/process.vala | |
parent | 2f09ed83386b334f0dfb7f376b99739b15e49fc9 (diff) | |
parent | d7d11b341db85ce9768fa06b6f225d713621ec56 (diff) |
Merge branch 'main' into feat/jsx-gtk4
Diffstat (limited to 'lib/astal/io/process.vala')
-rw-r--r-- | lib/astal/io/process.vala | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/lib/astal/io/process.vala b/lib/astal/io/process.vala index cfd05b9..4b77aee 100644 --- a/lib/astal/io/process.vala +++ b/lib/astal/io/process.vala @@ -76,7 +76,7 @@ public class AstalIO.Process : Object { * * The first element of the vector is executed with the remaining elements as the argument list. */ - public Process.subprocessv(string[] cmd) throws Error { + public Process(string[] cmd) throws Error { Object(argv: cmd); process = new Subprocess.newv(cmd, SubprocessFlags.STDIN_PIPE | @@ -91,13 +91,22 @@ public class AstalIO.Process : Object { } /** + * Start a new subprocess with the given command. + * + * The first element of the vector is executed with the remaining elements as the argument list. + */ + public static Process subprocessv(string[] cmd) throws Error { + return new Process(cmd); + } + + /** * Start a new subprocess with the given command * which is parsed using [[email protected]_parse_argv]. */ public static Process subprocess(string cmd) throws Error { string[] argv; Shell.parse_argv(cmd, out argv); - return new Process.subprocessv(argv); + return Process.subprocessv(argv); } /** |