scripts/bash/usr-local-bin/fluffychat

16 lines
400 B
Plaintext
Raw Normal View History

#!/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
2023-05-18 11:25:47 +02:00
if [ -f /snap/bin/fluffychat ]; then
2023-04-06 11:03:10 +02:00
snap run fluffychat $@
2023-05-18 11:25:47 +02: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 $@
else
2023-04-06 11:03:10 +02:00
/usr/bin/fluffychat
fi
set +x