Repository navigation
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
May fix #480, this and any other related dorion plugins bugs found on PTB, canary discord
Issue
If you're on a non-stable Discord version (PTB, Canary), you may have noticed dorion features aren't working (e.g. the titlebar, the updater, extensions, etc.). The console shows errors like
Command XXXXX not allowed by ACLThe thing is, Tauri only trusts dorion's frontend (
discord.com) and treats every other site as untrusted. So sites likeptb.discord.comandcanary.discord.comdon't get access to dorion's commands, and every call from them gets blocked with "not allowed by ACL".The capability does include
*.discord.com, but it only gives access to Tauri's built-in and plugin stuff, not dorion's own commands likeget_platformorremove_top_bar. That's why stable works fine and PTB/Canary don't.Fix
src-tauri/permissions/dorion.tomlwith adorion-commandspermission that allows all Dorion commands."dorion-commands"to the permissions incapabilities/default.json.popout-*to the capability's windows. Once Dorion has its own permissions, Tauri checks them on Stable too, so popout windows would lose access without this.I also recommend including an Channel type inside of the issue template to make sure which channel we're working on.
Important: make sure new commands in
generate_handler!lso need to be added todorion.toml! Happy coding