telegram-desktop wrapper for 64Gram

This commit is contained in:
Aminda Suomalainen 2024-06-05 09:34:43 +03:00
parent c5e51d734b
commit 6d3e3dec23
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q
2 changed files with 20 additions and 1 deletions

View File

@ -13,7 +13,7 @@ ln -sfv $FLATPAKEXPORTS/com.rafaelmardojai.Blanket $TARGETDIR/blanket
ln -sfv $FLATPAKEXPORTS/org.claws_mail.Claws-Mail $TARGETDIR/claws-mail
ln -sfv $FLATPAKEXPORTS/com.github.tchx84.Flatseal $TARGETDIR/flatseal
ln -sfv $FLATPAKEXPORTS/org.telegram.desktop $TARGETDIR/telegram-desktop
#ln -sfv $FLATPAKEXPORTS/org.telegram.desktop $TARGETDIR/telegram-desktop
ln -sfv $FLATPAKEXPORTS/org.torproject.torbrowser-launcher $TARGETDIR/torbrowser-launcher-flatpak
ln -sfv $FLATPAKEXPORTS/org.videolan.VLC $TARGETDIR/vlc-flatpak
ln -sfv $FLATPAKEXPORTS/net.davidotek.pupgui2 $TARGETDIR/protonup

View File

@ -0,0 +1,19 @@
#!/usr/bin/env bash
set -x
# Attempt to start the less annoying fork
if [ -f /var/lib/flatpak/exports/bin/io.github.tdesktop_x64.TDesktop ]; then
flatpak run io.github.tdesktop_x64.TDesktop "$@"
elif [ -f ~/.local/share/flatpak/exports/bin/io.github.tdesktop_x64.TDesktop ]; then
flatpak run --user io.github.tdesktop_x64.TDesktop "$@"
# but if it's not installed, fallback to the official one
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 "$@"
elif [ -f ~/.local/share/flatpak/exports/bin/org.telegram.desktop ]; then
flatpak run --user org.telegram.desktop "$@"
else
print "Telegram not found :)"
fi
set +x