[positionier] generate_context macro panic with default permissions
Opened this issue · 2 comments
its-monotype commented
Default permissions include set-tray-icon-state
, but tray-icon
is an optional feature, so it's probably causing this error.
error: proc macro panicked
--> src\lib.rs
|
76 | .run(tauri::generate_context!())
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: message: failed to resolve ACL: SetPermissionNotFound { permission: "set-tray-icon-state", set: "default" }
rafadpedrosa commented
I'm learning Tauri by creating a simple app for myself. I don't think it solves the issue here, but I removed the permission from desktop.json (img attached) and now it's working.
I'm just posting here bc it may help/unblock others like me. But, given my lack of knowledge of Tauri, I'm unsure if it's the solution
joakim commented
@rafadpedrosa Didn't solve it for me, unfortunately, but this did:
"permissions": [
"positioner:allow-move-window",
"positioner:allow-set-tray-icon-state"
]
The issue seems to be with positioner:default
, at least for me.