Fork me on GitHub

Telegram

Description: Installs telegram.

#!/bin/bash
sudo add-apt-repository -y ppa:atareao/telegram
sudo apt-get update
sudo apt-get install telegram -y

echo "fixing hardcoded icon"

old="Icon=\/opt\/telegram\/telegram.svg"
new="Icon=telegram"
location="/usr/share/applications/telegram.desktop"

sudo sed -i s/$old/$new/g $location


Download the Script here.