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

T.me link handling #312

Closed
alvitg opened this issue Jan 12, 2021 · 2 comments
Closed

T.me link handling #312

alvitg opened this issue Jan 12, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@alvitg
Copy link

alvitg commented Jan 12, 2021

Please enable proper handling of links like https://t.me/durov_russia/29 Just now clicking such a link in Fernshriber tends to USERNAME_INVALID message.

@jgibbon
Copy link
Collaborator

jgibbon commented Jan 12, 2021

While it's not really documented in a traditional way, a look at the Telegram Desktop source will help find some more examples:
const std::vector<LocalUrlHandler> &LocalUrlHandlers() (and the methods it calls) in
https://github.com/telegramdesktop/tdesktop/blob/dev/Telegram/SourceFiles/core/local_url_handlers.cpp give kind of an overview.

@jgibbon
Copy link
Collaborator

jgibbon commented May 25, 2021

This seems to belong to a bunch of related issues: #151, #276, #312, #412 (this comment is copied to all of them)
Proposed way to hopefully fix most of them:

  • use MimeType=x-url-handler (caveat: according to link, update-desktop-database isn't called after installation yet…)
  • implement at least some of the missing url functions (link in T.me link handling #312 – search for LocalUrlHandlers; also look below)
  • on start: scan for existing .desktop file, delete.
  • link handler: save "active link" to some temporary property until tg is authenticated, only then process it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants