diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-07-28 02:19:33 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-07-28 02:19:33 +0300 |
| commit | b499e611b6a983ce6077da555ad55c1fd58b1387 (patch) | |
| tree | bca459a912ad7159b2a46d62ed095093348270f6 /src/app/api/plugins/runtime.rs | |
| parent | 7383f120c669bad7e55118d920a6dbb76112dfe0 (diff) | |
fix: resolve relative plugin commands from plugin root
refs #1949
Diffstat (limited to 'src/app/api/plugins/runtime.rs')
| -rw-r--r-- | src/app/api/plugins/runtime.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/app/api/plugins/runtime.rs b/src/app/api/plugins/runtime.rs index 9106886c..b956fc98 100644 --- a/src/app/api/plugins/runtime.rs +++ b/src/app/api/plugins/runtime.rs @@ -119,12 +119,12 @@ impl App { self.state.plugin_commands_in_flight += 1; let event_tx = self.event_tx.clone(); std::thread::spawn(move || { - let child = crate::plugin_command::command_for_argv(&program, &args) - .current_dir(plugin_root) - .envs(env) - .stdout(Stdio::piped()) - .stderr(Stdio::piped()) - .spawn(); + let child = + crate::plugin_command::command_for_argv_in_dir(&program, &args, &plugin_root) + .envs(env) + .stdout(Stdio::piped()) + .stderr(Stdio::piped()) + .spawn(); let finished = match child { Ok(mut child) => { let stdout = child.stdout.take(); |
