From 342d7f7209d723d0b4a8e3c03f321303af3c4683 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Sch=C3=B6nauer?= <37108907+DottoDev@users.noreply.github.com> Date: Fri, 3 Mar 2023 11:58:58 +0000 Subject: [PATCH] skip skip-notify warning on Win (#362) --- src/main.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index abc132cf..8d3bc20d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -87,11 +87,13 @@ fn run() -> Result<()> { debug!("Self Update: {:?}", cfg!(feature = "self-update")); #[cfg(target_os = "linux")] - if config.display_preamble() && !config.skip_notify() { - print_warning("Due to a design issue with notify-send it could be that topgrade hangs when it's finished. + { + if config.display_preamble() && !config.skip_notify() { + print_warning("Due to a design issue with notify-send it could be that topgrade hangs when it's finished. If this is the case on your system add the --skip-notify flag to the topgrade command or set skip_notify = true in the config file. If you don't want this message to appear any longer set display_preamble = false in the config file. For more information about this issue see https://askubuntu.com/questions/110969/notify-send-ignores-timeout and https://github.com/topgrade-rs/topgrade/issues/288."); + } } if config.run_in_tmux() && env::var("TOPGRADE_INSIDE_TMUX").is_err() {