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(desktop): validate app-open links on secondary launch

t8y20daa23ed8f8f
diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs
index 9c3d11707c..1d9311f0b0 100644
--- a/src-tauri/src/lib.rs
+++ b/src-tauri/src/lib.rs
@@ -1290,6 +1290,7 @@ pub fn run() {
let builder = if should_enable_single_instance(cfg!(debug_assertions)) {
builder.plugin(tauri_plugin_single_instance::init(|app, args, cwd| {
+ let app_open_requested = args.iter().any(|arg| commands::deep_link::is_app_open_deep_link(arg));
let links = commands::deep_link::connection_deep_links_from_args(args.clone());
open_connection_deep_links(app, links);
@@ -1314,7 +1315,7 @@ pub fn run() {
// simply vanished - so make the reason recoverable from the logs.
if !show_main_window(app) {
eprintln!(
- "[WINDOW] single-instance handoff could not reveal the main window; {}",
+ "[WINDOW] single-instance handoff could not reveal the main window; app_open_requested={app_open_requested}; {}",
main_window_probe_state(app)
);
}