From f2fde5227f4672e408e54d2f95d017a919f39b4b Mon Sep 17 00:00:00 2001 From: Nathan Flurry Date: Sun, 21 Jul 2024 22:00:48 -0700 Subject: [PATCH] fix: show term args on linux --- rivet-toolchain/src/util/show_term.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rivet-toolchain/src/util/show_term.rs b/rivet-toolchain/src/util/show_term.rs index 12544479..0b3538ef 100644 --- a/rivet-toolchain/src/util/show_term.rs +++ b/rivet-toolchain/src/util/show_term.rs @@ -96,6 +96,8 @@ pub async fn show_term(args: &[String]) -> GlobalResult { #[cfg(target_os = "linux")] let child: Child = { + let mut args = args.to_vec(); + // TODO(forest): For Linux, the code is trying to find an // available terminal emulator from a predefined list and // then run the command in it. However, the way to run a @@ -159,7 +161,7 @@ pub async fn show_term(args: &[String]) -> GlobalResult { .arg("-c") .args(&args) .spawn() - .expect("Terminal emulator failed to start"); + .expect("Terminal emulator failed to start") } None => { panic!("No terminal emulator found");