AI media harness for planning, generating, and editing locally
TypeScript
Fix the Linux build
Bitti911aa15666a8
diff --git a/src-tauri/src/agent/process.rs b/src-tauri/src/agent/process.rsindex 90cd674..5b7d6ae 100644--- a/src-tauri/src/agent/process.rs+++ b/src-tauri/src/agent/process.rs@@ -30,6 +30,7 @@ pub(super) struct CommandSpec {pub(super) const CREATE_NO_WINDOW: u32 = 0x0800_0000;pub(super) fn quiet_command(executable: &Path) -> Command {+ #[cfg_attr(not(windows), allow(unused_mut))]let mut command = Command::new(executable);#[cfg(windows)]command.creation_flags(CREATE_NO_WINDOW);diff --git a/src-tauri/src/app.rs b/src-tauri/src/app.rsindex 81ef717..523df0c 100644--- a/src-tauri/src/app.rs+++ b/src-tauri/src/app.rs@@ -41,10 +41,14 @@ pub fn run() {the window is created) never shows as a jump. */let mut builder = tauri::WebviewWindowBuilder::from_config(app, window_config)?.data_directory(data_directory)- .visible(false)- /* Needs WebView2 125+; older runtimes keep the classic bars. */- .scroll_bar_style(tauri::webview::ScrollBarStyle::FluentOverlay)- .general_autofill_enabled(false);+ .visible(false);+ #[cfg(windows)]+ {+ builder = builder+ /* Needs WebView2 125+; older runtimes keep the classic bars. */+ .scroll_bar_style(tauri::webview::ScrollBarStyle::FluentOverlay)+ .general_autofill_enabled(false);+ }if native_shell::window_state_missing(app.handle()) {if let Ok(Some(monitor)) = app.primary_monitor() {let area = monitor.work_area();diff --git a/src-tauri/src/linux_webview.rs b/src-tauri/src/linux_webview.rsindex 5ed40ff..03916ed 100644--- a/src-tauri/src/linux_webview.rs+++ b/src-tauri/src/linux_webview.rs@@ -62,7 +62,8 @@ fn enable_features(settings: &webkit2gtk::Settings) -> Result<FeatureReport, Strlet get_enabled: GetFeatureEnabled = std::mem::transmute(symbol(b"webkit_settings_get_feature_enabled\0").map_err(missing)?);let set_enabled: SetFeatureEnabled = std::mem::transmute(symbol(b"webkit_settings_set_feature_enabled\0").map_err(missing)?);- let settings_ptr: *mut c_void = settings.to_glib_none().0.cast();+ let settings_ptr: *mut webkit2gtk::ffi::WebKitSettings = settings.to_glib_none().0;+ let settings_ptr: *mut c_void = settings_ptr.cast();let list = get_all();if list.is_null() {return Err("WebKitGTK returned no feature list.".into());diff --git a/src-tauri/src/native_shell.rs b/src-tauri/src/native_shell.rsindex 9e2b793..9a5c5cb 100644--- a/src-tauri/src/native_shell.rs+++ b/src-tauri/src/native_shell.rs@@ -11,9 +11,10 @@ tests never have to care which host they are in.-------------------------------------------------------------------------- */use serde::{Deserialize, Serialize};-use tauri::{AppHandle, Emitter as _, Manager as _, Runtime};+use tauri::{AppHandle, Manager as _, Runtime};/// Event the page listens to for a changed accent (src/lib/nativeShell.ts).+#[cfg_attr(not(windows), allow(dead_code))]pub(crate) const ACCENT_EVENT: &str = "system-accent-changed";/// Global the page's boot script reads to learn that Mica is behind it. Set@@ -182,6 +183,7 @@ pub(crate) struct AccentColors {pub(crate) dark3: String,}+#[cfg_attr(not(windows), allow(dead_code))]pub(crate) fn hex(r: u8, g: u8, b: u8) -> String {format!("#{r:02x}{g:02x}{b:02x}")}@@ -220,6 +222,7 @@ fn read_accent(pub(crate) fn watch_accent<R: Runtime>(app: &AppHandle<R>) {#[cfg(windows)]{+ use tauri::Emitter as _;use windows::Foundation::TypedEventHandler;use windows::UI::ViewManagement::UISettings;let Ok(settings) = UISettings::new() else { return };