comms.bash: check and attempt locally installed Telegram

This commit is contained in:
Aminda Suomalainen 2020-10-01 20:52:08 +03:00
parent 46a282df65
commit 9a4ae2700e
Signed by: Mikaela
GPG Key ID: 99392F62BAE30723
1 changed files with 7 additions and 1 deletions

View File

@ -14,7 +14,13 @@ set -x
(jami-gnome -r&)
# Telegram.org
(telegram-desktop -many -startintray&)
if [ -f ~/.local/Telegram/Updater ]
then
(~/.local/Telegram/Updater -many -startintray&)
else
(telegram-desktop -many -startintray&)
fi
# 2.2.0+ds-1 has proper multi-account support without extra profiles
#mkdir -p ~/.config/T2L-telegram
#(telegram-desktop -many -workdir ~/.config/T2L-telegram -startintray&)