Skip to content

Commit

Permalink
fix(cli/migrate): fix clipboard permissions migration (#10186)
Browse files Browse the repository at this point in the history
closes #10185

The plugin has been updated recently and its permissions has changed.
  • Loading branch information
amrbashir authored Jul 4, 2024
1 parent 96f65fe commit 9413657
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .changes/cli-clipboard-manager-migrate-perms.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"tauri-cli": "patch:bug"
"@tauri-apps/cli": "patch:bug"
---

Fix `migrate` command, migrating incorrect permissions for `clipboard`.
4 changes: 2 additions & 2 deletions tooling/cli/src/migrate/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -501,8 +501,8 @@ fn allowlist_to_permissions(
permissions!(allowlist, permissions, process, relaunch => "process:allow-restart");
permissions!(allowlist, permissions, process, exit => "process:allow-exit");
// clipboard
permissions!(allowlist, permissions, clipboard, read_text => "clipboard-manager:allow-read");
permissions!(allowlist, permissions, clipboard, write_text => "clipboard-manager:allow-write");
permissions!(allowlist, permissions, clipboard, read_text => "clipboard-manager:allow-read-text");
permissions!(allowlist, permissions, clipboard, write_text => "clipboard-manager:allow-write-text");
// app
permissions!(allowlist, permissions, app, show => "app:allow-app-show");
permissions!(allowlist, permissions, app, hide => "app:allow-app-hide");
Expand Down

0 comments on commit 9413657

Please sign in to comment.