From 48af00950ad6ab2c2d0a7cadc19bd2ff8edee173 Mon Sep 17 00:00:00 2001 From: reya Date: Mon, 17 Feb 2025 13:23:32 +0700 Subject: [PATCH] fix: cannot launch app on linux --- crates/app/src/main.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/app/src/main.rs b/crates/app/src/main.rs index 7714035..3d35af1 100644 --- a/crates/app/src/main.rs +++ b/crates/app/src/main.rs @@ -292,6 +292,8 @@ fn main() { cx.open_window(opts, |window, cx| { window.set_window_title(APP_NAME); window.set_app_id(APP_ID); + + #[cfg(not(target_os = "linux"))] window .observe_window_appearance(|window, cx| { Theme::sync_system_appearance(Some(window), cx); @@ -405,6 +407,8 @@ async fn restore_window(profile: Option, cx: &mut AsyncApp) -> Res _ = cx.open_window(opts, |window, cx| { window.set_window_title(APP_NAME); window.set_app_id(APP_ID); + + #[cfg(not(target_os = "linux"))] window .observe_window_appearance(|window, cx| { Theme::sync_system_appearance(Some(window), cx);