mirror of
https://gitea.blesmrt.net/mikaela/scripts.git
synced 2024-11-28 22:29:28 +01:00
telegram-desktop wrapper for 64Gram
This commit is contained in:
parent
c5e51d734b
commit
6d3e3dec23
@ -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/org.claws_mail.Claws-Mail $TARGETDIR/claws-mail
|
||||||
ln -sfv $FLATPAKEXPORTS/com.github.tchx84.Flatseal $TARGETDIR/flatseal
|
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.torproject.torbrowser-launcher $TARGETDIR/torbrowser-launcher-flatpak
|
||||||
ln -sfv $FLATPAKEXPORTS/org.videolan.VLC $TARGETDIR/vlc-flatpak
|
ln -sfv $FLATPAKEXPORTS/org.videolan.VLC $TARGETDIR/vlc-flatpak
|
||||||
ln -sfv $FLATPAKEXPORTS/net.davidotek.pupgui2 $TARGETDIR/protonup
|
ln -sfv $FLATPAKEXPORTS/net.davidotek.pupgui2 $TARGETDIR/protonup
|
||||||
|
19
bash/usr-local-bin/telegram-desktop
Executable file
19
bash/usr-local-bin/telegram-desktop
Executable 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
|
Loading…
Reference in New Issue
Block a user