Skip to content

LLM Wiki is a cross-platform desktop application that turns your documents into an organized, interlinked knowledge base — automatically. Instead of traditional RAG (retrieve-and-answer from scratch every time), the LLM incrementally builds and maintains a persistent wiki from your sources。

TypeScript

fix: harden Linux Search window rendering

nash_su5b8961b46f86
diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs
index c111e6f4..72e059f9 100644
--- a/src-tauri/src/lib.rs
+++ b/src-tauri/src/lib.rs
@@ -764,14 +764,21 @@ pub fn run() {
#[cfg(target_os = "linux")]
fn apply_linux_webkit_compat_env() {
- // WebKitGTK can crash during startup on some Wayland compositors
- // (reported on Fedora 44) unless compositing mode is disabled before
- // the WebView is created. Keep this as a Linux-only default and do not
- // override an explicit user setting so advanced users and packagers can
- // opt back into the platform default if their stack supports it.
+ // WebKitGTK can crash or withdraw its window on some Wayland/XWayland
+ // stacks unless accelerated render paths are disabled before the WebView
+ // is created. Keep these as Linux-only defaults and do not override an
+ // explicit user setting so advanced users and packagers can opt back into
+ // the platform default if their stack supports it.
if std::env::var_os("WEBKIT_DISABLE_COMPOSITING_MODE").is_none() {
std::env::set_var("WEBKIT_DISABLE_COMPOSITING_MODE", "1");
}
+ // Some WebKitGTK/Mesa combinations still attempt the DMA-BUF renderer
+ // even with accelerated compositing disabled. In an AppImage running
+ // through XWayland that can withdraw the native window while leaving the
+ // web and network processes alive. Respect explicit packager overrides.
+ if std::env::var_os("WEBKIT_DISABLE_DMABUF_RENDERER").is_none() {
+ std::env::set_var("WEBKIT_DISABLE_DMABUF_RENDERER", "1");
+ }
}
#[cfg(not(target_os = "linux"))]
diff --git a/src/components/search/search-view.tsx b/src/components/search/search-view.tsx
index d049aece..d1e59b1e 100644
--- a/src/components/search/search-view.tsx
+++ b/src/components/search/search-view.tsx
@@ -193,7 +193,6 @@ export function SearchView() {
if (e.key === "Enter") doSearch(query)
}}
placeholder={t("search.placeholderWithShortcut")}
- autoFocus
className="w-full rounded-md border bg-background py-2 pl-9 pr-3 text-sm placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring"
/>
</div>