Skip to content

v1.2.1 - 修复浏览器打开 Fix open-in-browser

Choose a tag to compare

@RAFOLIE RAFOLIE released this 14 Aug 08:36
· 23 commits to main since this release

DSH Desktop v1.2.1(windowos)

中文 | English below

中文

修复:链接的「在浏览器中打开」与左键点击外链现在真正打开系统默认浏览器。

v1.2.0 的菜单项无反应,根因是 WebView2 新窗口请求在未注册处理器时被 wry 静默拒绝。本版把主窗口改为 Rust 侧创建并注册 on_new_window 处理器:所有新窗口请求(target=_blank 链接、菜单的 window.open)统一经 opener 插件交给系统默认浏览器。

右键链接仍是简洁两项菜单:「在浏览器中打开」 / 「复制链接」

快速开始:解压 zip,双击 dsh-desktop-windowos.exe。首次运行 SmartScreen 可能拦截(未签名):「更多信息 → 仍要运行」。

English

Fix: "Open in browser" on links and left-click on external links now actually open the system default browser.

The v1.2.0 menu item did nothing — WebView2 new-window requests are silently denied by wry when no handler is registered. This release builds the main window in Rust with an on_new_window handler: every new-window request (target=_blank links, the menu's window.open) is routed to the system default browser via the opener plugin.

Right-clicking a link still shows the clean two-item menu: "Open in browser" / "Copy link".

Quick start: unzip and double-click dsh-desktop-windowos.exe. Windows SmartScreen may warn on first run (unsigned exe): "More info" → "Run anyway".