From 3057befa5dd568365f65b8f6c68bfb6fa29375df Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Fri, 22 Nov 2019 08:48:33 -0800 Subject: [PATCH] remove use of tinyfiledialogs It will pass the message text to the shell without proper quoting which results in it running all sorts of garbage depending on the message you're trying to display. Very scary! refs: https://github.com/jdm/tinyfiledialogs-rs/issues/19 --- Cargo.toml | 1 - src/main.rs | 12 ------------ 2 files changed, 13 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 38a6fa98f..c0b5adade 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -46,7 +46,6 @@ structopt = "0.2" tabout = { path = "tabout" } term = { path = "term" } termwiz = { path = "termwiz"} -tinyfiledialogs = "3.3" toml = "0.4" unicode-normalization = "0.1" unicode-segmentation = "1.5" diff --git a/src/main.rs b/src/main.rs index 36988e556..80eeaf3ce 100644 --- a/src/main.rs +++ b/src/main.rs @@ -599,18 +599,6 @@ fn main() -> Result<(), Error> { let message = e.to_string(); log::error!("{}", message); - - // Avoid showing a modal dialog for IO errors such as - // BrokenPipe; those can manifest with the `cli proxy` subcommand - // running on the remote host, and no one would ever see those - // dialogs anyway - if e.downcast_ref::().is_none() { - tinyfiledialogs::message_box_ok( - "wezterm", - &message, - tinyfiledialogs::MessageBoxIcon::Error, - ); - } } result }