Skip to content

Instantly share code, notes, and snippets.

@oscarfonts
Created April 18, 2020 08:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oscarfonts/96d46e14615f6053d8a2813101d45e18 to your computer and use it in GitHub Desktop.
Save oscarfonts/96d46e14615f6053d8a2813101d45e18 to your computer and use it in GitHub Desktop.

Install telegram

wget -O- https://telegram.org/dl/desktop/linux | sudo tar xJ -C /opt/
sudo ln -s /opt/Telegram/Telegram /usr/local/bin/telegram-desktop

Create menu entry

wget https://telegram.org/img/t_logo.png -O /usr/share/pixmaps/telegram.png

Create /usr/share/applications/telegram.desktop file with the following contents:

[Desktop Entry]
Name=Telegram
StartupWMClass=Telegram
Comment=Telegram Desktop
GenericName=Telegram Client for Linux
Exec=/usr/local/bin/telegram-desktop -- %u
Icon=/usr/share/pixmaps/telegram.png
Terminal=false
Type=Application
StartupNotify=true
Categories=GNOME;GTK;Network;InstantMessaging;
MimeType=application/x-xdg-protocol-tg;x-scheme-handler/tg;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment