Tauri v1 to v2 upgrade issue with ACL: command plugin event|listen not allowed by ACL #13364
Unanswered
suciuandrei94
asked this question in
Q&A
Replies: 1 comment 3 replies
-
can you share the output of the |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I've recently migrated an app from tauri v1 to tauri v2, the app starts fine but then when I try to use the functionality I get a problem with event listen (see screenshot)

I've got a capabilities json and I defined core:event:default and even added explicitly the permission but it just doesn't work.
{ "identifier": "default", "platforms": [ "macOS", "windows", "linux" ], "windows": [ "main-window" ], "permissions": [ "core:default", "log:default", "core:event:default", "core:event:allow-listen", "core:event:allow-unlisten", "core:event:allow-emit", "core:event:allow-emit-to", "core:window:default", "core:window:allow-hide", "core:tray:default", "fs:allow-read-file", "fs:allow-write-file", "fs:allow-read-dir", "fs:allow-copy-file", "fs:allow-mkdir", "fs:allow-remove", "fs:allow-remove", "fs:allow-rename", "fs:allow-exists", "http:default", "notification:default", "global-shortcut:allow-is-registered", "global-shortcut:allow-register", "global-shortcut:allow-register-all", "global-shortcut:allow-unregister", "global-shortcut:allow-unregister-all", "clipboard-manager:allow-read-text", "clipboard-manager:allow-write-text", "dialog:default", "notification:default", "os:default", "process:default", "http:default", "clipboard-manager:default", "shell:default" ] }
I checked gen/schemas/capabilities.json and the permissions are there...I'm struggling to fix this problem, spent probably more than 5 days on it.
Any useful advice? the application is quite complex, I created a small app which integrated event listen on the UI and it worked fine there.
Thank you very much!
Beta Was this translation helpful? Give feedback.
All reactions