A tiny friend in your Mac's notch and on your iPhone that keeps an eye on your AI coding agents: Claude Code, Codex, Cursor, Gemini CLI, Antigravity and more. Approve from the notch or your Lock Screen.
Swift ai-agentsanthropicantigravityclaudeclaude-codecodexcursordynamic-islandgemini-cliiosiphonlinuxmacosmacos-appmenubar-appnotchopen-sourceswiftswiftuiwindows
Keep the AppImage's GStreamer registry out of the system's
Salomão Davy4c55ab8f988c
diff --git a/windows/src-tauri/src/lib.rs b/windows/src-tauri/src/lib.rsindex 0cca0b02..2c1248e9 100644--- a/windows/src-tauri/src/lib.rs+++ b/windows/src-tauri/src/lib.rs@@ -349,6 +349,7 @@ fn open_settings_window(app: AppHandle) {}pub fn run() {+ platform::prepare_environment();let loaded = settings::load();let gate = Arc::new(PollGate::new());diff --git a/windows/src-tauri/src/platform/linux.rs b/windows/src-tauri/src/platform/linux.rsindex e8b22087..df43f47f 100644--- a/windows/src-tauri/src/platform/linux.rs+++ b/windows/src-tauri/src/platform/linux.rs@@ -30,7 +30,8 @@ pub const HOME_VAR: &str = "HOME";// ── Files ─────────────────────────────────────────────────────────────────────-/// `$XDG_CONFIG_HOME`, or `~/.config` when it is unset or not absolute.+/// An XDG base directory (`$XDG_CONFIG_HOME` …), or its fallback under the home+/// directory when it is unset or not absolute.fn xdg(var: &str, fallback: &str) -> PathBuf {std::env::var_os(var).map(PathBuf::from)@@ -50,6 +51,24 @@ pub fn local_dir() -> PathBuf {xdg("XDG_DATA_HOME", ".local/share").join("coucou")}+/// Environment the webview must inherit, set before any thread or process+/// starts.+///+/// Inside an AppImage, WebKit uses the GStreamer bundled with it, and GStreamer+/// keeps its plugin registry in ~/.cache/gstreamer-1.0 by default — the same+/// file the system's GStreamer uses. The AppImage is mounted somewhere new on+/// every launch, so each launch would rewrite the system's registry with+/// plugin paths that vanish once Coucou quits. Give ours its own file.+pub fn prepare_environment() {+ if std::env::var_os("APPIMAGE").is_none() || std::env::var_os("GST_REGISTRY").is_some() {+ return;+ }+ let cache = xdg("XDG_CACHE_HOME", ".cache").join("coucou");+ if std::fs::create_dir_all(&cache).is_ok() {+ std::env::set_var("GST_REGISTRY", cache.join("gstreamer-registry.bin"));+ }+}+pub fn local_time() -> LocalTime {let mut tm: libc::tm = unsafe { std::mem::zeroed() };unsafe {diff --git a/windows/src-tauri/src/platform/windows.rs b/windows/src-tauri/src/platform/windows.rsindex 80f40f14..ae2279d4 100644--- a/windows/src-tauri/src/platform/windows.rs+++ b/windows/src-tauri/src/platform/windows.rs@@ -49,6 +49,9 @@ pub fn local_dir() -> PathBuf {base.join("Coucou")}+/// Nothing to set up before the webview starts.+pub fn prepare_environment() {}+pub fn local_time() -> LocalTime {let t = unsafe { GetLocalTime() };LocalTime {