2022-03-30 20:47:10 +02:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2023-01-04 10:20:39 +01:00
|
|
|
# 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.
|
|
|
|
|
2022-03-30 20:47:10 +02:00
|
|
|
set -x
|
2023-01-04 10:20:39 +01:00
|
|
|
if [ -f /snap/bin/fluffychat ]
|
|
|
|
then
|
2023-04-06 11:03:10 +02:00
|
|
|
snap run fluffychat $@
|
2023-01-04 10:20:39 +01:00
|
|
|
elif [ -f /var/lib/flatpak/exports/bin/im.fluffychat.Fluffychat ]
|
|
|
|
then
|
2023-04-06 11:03:10 +02:00
|
|
|
flatpak run im.fluffychat.Fluffychat $@
|
2023-01-04 10:20:39 +01:00
|
|
|
else
|
2023-04-06 11:03:10 +02:00
|
|
|
/usr/bin/fluffychat
|
2023-01-04 10:20:39 +01:00
|
|
|
fi
|
2022-03-30 20:47:10 +02:00
|
|
|
set +x
|