Skip to content
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] Add MIME handler to Desktop File for automatically opening Vesktop from browser #849

Closed
3 tasks done
Arcitec opened this issue Sep 11, 2024 · 2 comments
Closed
3 tasks done
Labels
duplicate This issue or pull request already exists

Comments

@Arcitec
Copy link

Arcitec commented Sep 11, 2024

Motivation

Currently, 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.

Solution

The 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 .desktop file (which could be manually included in the project instead of relying on the above tool):

MimeType=x-scheme-handler/discord;

If someone already has Vesktop on the system, the MIME handler database has to be updated like this:

sudo update-desktop-database

(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

Request Agreement

  • I have searched the existing issues and found no similar issue
  • This is not a plugin request
  • This is not a Vencord bug report
@Arcitec Arcitec added the enhancement New feature or request label Sep 11, 2024
@Covkie
Copy link
Collaborator

Covkie commented Sep 11, 2024

dupe of #769

@Vendicated Vendicated closed this as not planned Won't fix, can't repro, duplicate, stale Sep 11, 2024
@Vendicated Vendicated added duplicate This issue or pull request already exists and removed enhancement New feature or request labels Sep 11, 2024
@Arcitec
Copy link
Author

Arcitec commented Sep 11, 2024

That's embarrassing. I searched but didn't find that other ticket. Sorry for the duplicate and thanks for pointing it out!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants