aboutsummaryrefslogtreecommitdiff
path: root/src/platform/mod.rs
diff options
context:
space:
mode:
authorCan Celik <ogulcancelik@gmail.com>2026-09-13 23:37:26 +0300
committerGitHub <noreply@github.com>2026-09-13 23:37:26 +0300
commit6075d25f470a1145aa8240e64868cdfebc1dc348 (patch)
treeceea1c35f741fb810b6919127b9224546261943e /src/platform/mod.rs
parentb847e6cdb6aa6ee113cc026dcbe1fe966a0c750f (diff)
fix: keep plugins working after client-only updates (#4077)
Diffstat (limited to 'src/platform/mod.rs')
-rw-r--r--src/platform/mod.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/platform/mod.rs b/src/platform/mod.rs
index 67e474ff..3efad45e 100644
--- a/src/platform/mod.rs
+++ b/src/platform/mod.rs
@@ -55,6 +55,11 @@ pub(crate) fn classify_child_exit(_status: &portable_pty::ExitStatus) -> ChildEx
ChildExitReason::Exited
}
+#[cfg(not(target_os = "linux"))]
+pub(crate) fn launch_executable() -> std::io::Result<std::path::PathBuf> {
+ std::env::current_exe()
+}
+
pub(crate) fn detached_custom_command_process(command: &str) -> std::process::Command {
let mut process = detached_custom_command_process_platform(command);
configure_background_command(&mut process);