05b1714628
🔴 QR 扫描失败根因 (2项): - render/png: saturating_sub 导致 margin 区域映射到 finder 黑角, quiet zone 全黑,扫描器无法定位 QR - matrix/patterns: 缺少右上 finder 左侧 + 左下 finder 顶部 隔离带预留,数据模块破坏 finder 检测比率(1:1:3:1:1) 🔴 GUI 导出失败 (2项): - gui/Cargo.toml + gui/lib.rs: 注册 tauri-plugin-fs 后端插件 (前端 writeFile 调用缺少 Rust handler) - capabilities: fs:allow-write-file + $HOME/** 路径 scope (ACL 默认不给 fs 写权限,需显式声明) 🔧 其他: - ExportPanel: 导出失败显示红色错误信息(替代静默吞错) Co-Authored-By: Claude <noreply@anthropic.com>
17 lines
358 B
JSON
17 lines
358 B
JSON
{
|
|
"$schema": "../gen/schemas/desktop-schema.json",
|
|
"identifier": "default",
|
|
"description": "QRGen 默认权限",
|
|
"windows": ["main"],
|
|
"permissions": [
|
|
"core:default",
|
|
"store:default",
|
|
"dialog:default",
|
|
"clipboard-manager:default",
|
|
{
|
|
"identifier": "fs:allow-write-file",
|
|
"allow": [{ "path": "$HOME/**" }]
|
|
}
|
|
]
|
|
}
|