From f1e4009d355407481aea628ea7f08bece143320b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Sch=C3=B6nauer?= Date: Fri, 27 Jan 2023 22:53:00 +0100 Subject: [PATCH] notify-send warning respects skip_notify flag --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 9b6061e7..2f6a225a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -86,7 +86,7 @@ fn run() -> Result<()> { debug!("Binary path: {:?}", std::env::current_exe()); debug!("Self Update: {:?}", cfg!(feature = "self-update")); - if config.display_preamble() { + 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.