mirror of
https://github.com/wez/wezterm.git
synced 2025-01-05 04:05:42 +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:
parent
a2f891ad1b
commit
e10b3cf6db
@ -10,7 +10,7 @@ build = "build.rs"
|
|||||||
[dependencies]
|
[dependencies]
|
||||||
open = "1.4"
|
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"
|
log = "0.4"
|
||||||
serde = {version="1.0", features = ["derive"]}
|
serde = {version="1.0", features = ["derive"]}
|
||||||
zbus = "1.8"
|
zbus = "1.8"
|
||||||
|
@ -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/>
|
//! See <https://developer.gnome.org/notification-spec/>
|
||||||
|
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
|
@ -8,7 +8,7 @@ pub fn persistent_toast_notification_with_click_to_open_url(title: &str, message
|
|||||||
macos::show_notif(title, message, Some(url));
|
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)) {
|
if let Err(err) = dbus::show_notif(title, message, Some(url)) {
|
||||||
log::error!("Failed to show notification: {}", err);
|
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);
|
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) {
|
if let Err(err) = dbus::show_notif(title, message, None) {
|
||||||
log::error!("Failed to show notification: {}", err);
|
log::error!("Failed to show notification: {}", err);
|
||||||
|
Loading…
Reference in New Issue
Block a user