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

disable notifications on freebsd

There's a compilation issue for zbus on freebsd:
https://gitlab.freedesktop.org/dbus/zbus/-/issues/141
This commit is contained in:
Wez Furlong 2021-02-16 23:12:19 -08:00
parent a2f891ad1b
commit e10b3cf6db
3 changed files with 4 additions and 4 deletions

View File

@ -10,7 +10,7 @@ build = "build.rs"
[dependencies]
open = "1.4"
[target.'cfg(all(not(windows), not(target_os="macos")))'.dependencies]
[target.'cfg(all(not(windows), not(target_os="macos"), not(target_os="freebsd")))'.dependencies]
log = "0.4"
serde = {version="1.0", features = ["derive"]}
zbus = "1.8"

View File

@ -1,4 +1,4 @@
#![cfg(all(not(target_os = "macos"), not(windows)))]
#![cfg(all(not(target_os = "macos"), not(windows), not(target_os="freebsd")))]
//! See <https://developer.gnome.org/notification-spec/>
use serde::{Deserialize, Serialize};

View File

@ -8,7 +8,7 @@ pub fn persistent_toast_notification_with_click_to_open_url(title: &str, message
macos::show_notif(title, message, Some(url));
}
#[cfg(all(not(target_os = "macos"), not(windows)))]
#[cfg(all(not(target_os = "macos"), not(windows), not(target_os="freebsd")))]
{
if let Err(err) = dbus::show_notif(title, message, Some(url)) {
log::error!("Failed to show notification: {}", err);
@ -24,7 +24,7 @@ pub fn persistent_toast_notification(title: &str, message: &str) {
macos::show_notif(title, message, None);
}
#[cfg(all(not(target_os = "macos"), not(windows)))]
#[cfg(all(not(target_os = "macos"), not(windows), not(target_os="freebsd")))]
{
if let Err(err) = dbus::show_notif(title, message, None) {
log::error!("Failed to show notification: {}", err);