Skip to content

Instantly share code, notes, and snippets.

@bobby1030
Created August 20, 2017 08:28
Show Gist options
  • Star 10 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save bobby1030/ebd0d446a110aa6b40c767da9a8928ff to your computer and use it in GitHub Desktop.
Save bobby1030/ebd0d446a110aa6b40c767da9a8928ff to your computer and use it in GitHub Desktop.
Telegram Desktop Entry
[Desktop Entry]
Version=1.0
Name=Telegram Desktop
Comment=Official desktop version of Telegram messaging app
TryExec=/opt/Telegram/Telegram
Exec=/opt/Telegram/Telegram -- %u
Icon=telegram
Terminal=false
StartupWMClass=TelegramDesktop
Type=Application
Categories=Network;InstantMessaging;Qt;
MimeType=x-scheme-handler/tg;
X-Desktop-File-Install-Version=0.23
@omkarnathsingh
Copy link

Thanks. It worked for me.

@quedlin
Copy link

quedlin commented Jul 10, 2021

I have put it to /usr/share/applications on my debian 10 xfce
Works perfectly. Thank you!

@fjh1997
Copy link

fjh1997 commented Dec 30, 2021

try not use MimeType=x-scheme-handler/tg;, and add x-scheme-handler/tg=tg.desktop in [Default Applications] entry of ~/.config/mimeapps.list or telegram will overwrite it withuserapp-Telegram Desktop-xxxxx.desktop
see telegramdesktop/tdesktop#16311

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