Skip to content

armgit / dbx

Public Imported from GitHub
0

25 MB lightweight cross-platform database client for 100+ databases, including MySQL, PostgreSQL, SQLite, Redis, MongoDB, DuckDB, SQL Server, and Dameng. Built-in AI, MCP Server, CLI, desktop and Docker. | 轻量级跨平台数据库管理工具,支持 MySQL、PostgreSQL、SQLite、Redis、MongoDB、达梦等 100+ 数据库,提供桌面端、Docker、CLI、内置 AI 助手和 MCP。

fix(linux): allow dead code for webkit rendering workarounds and appimage backend override

t8y24ad458078910
diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs
index 65bc4b2f9f..3d4cf078c7 100644
--- a/src-tauri/src/lib.rs
+++ b/src-tauri/src/lib.rs
@@ -74,6 +74,7 @@ fn native_window_decorations_override(target_os: &str) -> Option<bool> {
}
}
+#[cfg_attr(not(target_os = "linux"), allow(dead_code))]
fn linux_webkit_rendering_workarounds() -> &'static [(&'static str, &'static str)] {
&[
// WebKitGTK's DMABUF renderer can produce a blank AppImage window or
@@ -85,6 +86,7 @@ fn linux_webkit_rendering_workarounds() -> &'static [(&'static str, &'static str
]
}
+#[cfg_attr(not(target_os = "linux"), allow(dead_code))]
fn linux_appimage_wayland_backend_override(
appimage: Option<&std::ffi::OsStr>,
wayland_display: Option<&std::ffi::OsStr>,