-
-
Notifications
You must be signed in to change notification settings - Fork 198
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature Request] Implement discord:// scheme / protocol #769
Comments
Quick chime-in since I noticed this project leverages electron-builder. Adding a protocol scheme is very easy in the builder config.
|
I closed it because i decided it wasn't useful enough to warrant the time spent. I haven't seen the protocol used much, not even by Discord. What aspects of it do you consider useful? As in, which routes? |
First example coming to my mind : Every time a server is joined via a web link, it should open the app, to the correct server that is. |
that already works! :P it's done via RPC, not the protocol |
This doesn't work for me ? It tries to open a discord:// url scheme when I click on "launch app" and it just says no app exist for such scheme, or something along those lines. At least on macOS + Safari. Guessing RPC would require discord to be already running ? |
Oh i see, interesting! Indeed, RPC only works if you have Vesktop open. I wasn't aware they use the protocol when RPC is unreachable, but you are right |
In the meantime, I used Platypus to register discord:// scheme and open vesktop app. Example of config for Platypus : In script path, I just added a script containing this :
When you tick "Accept dropped items", click "Settings" and then tick "Register as URI scheme handler" and simply add discord:// (or discord, I don't remember). This will register the discord:// link to your new app, and this new app will simply launch Vesktop when launched :) |
I accidentally made a duplicate thread, so I'll bring the information here: MotivationCurrently, Vesktop does not register itself to handle Discord links, so the browser won't offer to open Vesktop instead. I am not sure if this can be solved. SolutionThe required MIME type for "Open in Discord App" support can be added with this command: sudo desktop-file-edit --add-mime-type=x-scheme-handler/discord /usr/share/applications/vesktop.desktop That command adds the following line to the
If someone already has Vesktop on the system, the MIME handler database has to be updated like this:
(That last command might be needed as post-install in the packages such as RPM, I can't remember. It used to be required at least. But nowadays the system might detect the .desktop file and register MIME types automatically, at least with the DNF package manager. I really don't know.) After registering this MIME support, you can verify that it works with this command in Terminal: xdg-open "discord://test" However, after registering this MIME support, I am not sure if something else will be needed to fully support "Open in Discord App" detection on pages such as https://discord.com/invite/GameSir Most likely, the Electron wrapper will need some change too, so that the incoming |
pure yappery ☝️ build #813 if you want this |
The fuck ? |
Discord Account
No response
Motivation
I'd like to use this app as a discord replacement.
This has been requested here #200 but closed without any response / reason.
Solution
Add support for discord:// url-scheme
Alternatives
Proxying discord:// to vesktop:// but this doesn't exist either.
Additional context
No response
Request Agreement
The text was updated successfully, but these errors were encountered: