Skip to content
This repository has been archived by the owner on Dec 21, 2024. It is now read-only.

Commit

Permalink
fix: show term args on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanFlurry committed Jul 23, 2024
1 parent cfadc21 commit c7347cd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rivet-toolchain/src/util/show_term.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ pub async fn show_term(args: &[String]) -> GlobalResult<Child> {

#[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
Expand Down Expand Up @@ -159,7 +161,7 @@ pub async fn show_term(args: &[String]) -> GlobalResult<Child> {
.arg("-c")
.args(&args)
.spawn()
.expect("Terminal emulator failed to start");
.expect("Terminal emulator failed to start")
}
None => {
panic!("No terminal emulator found");
Expand Down

0 comments on commit c7347cd

Please sign in to comment.