diff --git a/src/config.rs b/src/config.rs index d39d4c7d..ceaf4372 100644 --- a/src/config.rs +++ b/src/config.rs @@ -294,7 +294,7 @@ pub struct ConfigFile { tmux_arguments: Option, set_title: Option, display_time: Option, - display_preambe: Option, + display_preamble: Option, assume_yes: Option, yay_arguments: Option, aura_aur_arguments: Option, @@ -1052,7 +1052,7 @@ impl Config { } pub fn display_preamble(&self) -> bool { - self.config_file.display_preambe.unwrap_or(true) + self.config_file.display_preamble.unwrap_or(true) } pub fn should_run_custom_command(&self, name: &str) -> bool { diff --git a/src/main.rs b/src/main.rs index a5603b35..9b6061e7 100644 --- a/src/main.rs +++ b/src/main.rs @@ -87,10 +87,10 @@ fn run() -> Result<()> { debug!("Self Update: {:?}", cfg!(feature = "self-update")); if config.display_preamble() { - print_warning(format!("Due to a design issue with notify-send it could be that topgrade hangs when it's finished. + 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.")); +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() {