telegram-desktop: fix running official Telegram in elif

This commit is contained in:
Aminda Suomalainen 2024-08-03 11:36:44 +03:00
parent 58cdc9dceb
commit cbd0a6ef02
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q

View File

@ -10,7 +10,7 @@ elif [ -f ~/.local/share/flatpak/exports/bin/io.github.tdesktop_x64.TDesktop ];
elif [ -f /usr/bin/telegram-desktop ]; then
/usr/bin/telegram-desktop "$@"
elif [ -f /var/lib/flatpak/exports/bin/org.telegram.desktop ]; then
flatpak run io.github.tdesktop_x64.TDesktop "$@"
flatpak run org.telegram.desktop "$@"
elif [ -f ~/.local/share/flatpak/exports/bin/org.telegram.desktop ]; then
flatpak run --user org.telegram.desktop "$@"
else