Skip to content

fix: Dorion commands got rejected on non-stable discord - #554

Open
Maallly wants to merge 2 commits into
SpikeHD:mainfrom
Maallly:fix/remote-origin-acl
Open

Maallly wants to merge 2 commits into
SpikeHD:mainfrom
Maallly:fix/remote-origin-acl

Conversation

@Maallly

@Maallly Maallly commented Nov 30, 2026 •

Copy link
Copy Markdown

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 ACL

The thing is, Tauri only trusts dorion's frontend (discord.com) and treats every other site as untrusted. So sites like ptb.discord.com and canary.discord.com don'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 like get_platform or remove_top_bar. That's why stable works fine and PTB/Canary don't.

Fix

  • Added src-tauri/permissions/dorion.toml with a dorion-commands permission that allows all Dorion commands.
  • Added "dorion-commands" to the permissions in capabilities/default.json.
  • Added 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 to dorion.toml! Happy coding

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Minimize, Close, Maximize Missing

1 participant