From 9a4ae2700ede48f9a7a2b95f2138a53990dac21c Mon Sep 17 00:00:00 2001 From: Mikaela Suomalainen Date: Thu, 1 Oct 2020 20:52:08 +0300 Subject: [PATCH] comms.bash: check and attempt locally installed Telegram --- bash/comms.bash | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/bash/comms.bash b/bash/comms.bash index 5065ff7..043ccbc 100755 --- a/bash/comms.bash +++ b/bash/comms.bash @@ -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&)