bash/usr-local-bin/fluffychat: prefer snap

This commit is contained in:
Aminda Suomalainen 2023-01-04 11:20:39 +02:00
parent 8e25155670
commit 5d9780f85c
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q

View File

@ -1,5 +1,17 @@
#!/usr/bin/env bash
# Flutter doesn't support flatpak, so Snap is the least bad Fluffy experience.
# I presume repo version is always outdated, so fallback to flathub s less
# bad.
set -x
flatpak run im.fluffychat.Fluffychat $@
if [ -f /snap/bin/fluffychat ]
then
snap run fluffychat $@
elif [ -f /var/lib/flatpak/exports/bin/im.fluffychat.Fluffychat ]
then
flatpak run im.fluffychat.Fluffychat $@
else
/usr/bin/fluffychat
fi
set +x