1
1
mirror of https://github.com/wez/wezterm.git synced 2024-09-20 11:17:15 +03:00

notifications: set the resident hint

Even with setting this, I'm 0 for 4 different systems in having the
notifications actually stay on the screen until dismissed.

This was successful at displaying a notification on the pixelbook
desktop though, so that's 1/3 linux systems that have had success.
This commit is contained in:
Wez Furlong 2019-12-04 19:55:43 -08:00
parent d4ab211190
commit 598c2d8c26
2 changed files with 3 additions and 1 deletions

View File

@ -60,7 +60,7 @@ daemonize = "0.4"
[target.'cfg(not(windows))'.dependencies]
# show a notification
notify-rust = "3"
notify-rust = "4.0.0-alpha.2"
# on linux, font-loader pulls in servo-font* crates which conflict with
# our newer font related deps, so we avoid it on linux

View File

@ -152,6 +152,8 @@ impl ConfigInner {
notify_rust::Notification::new()
.summary("Wezterm Configuration")
.body(&format!("{}", err))
// Stay on the screen until dismissed
.hint(notify_rust::Hint::Resident(true))
// timeout isn't respected on macos
.timeout(0)
.show()