mirror of
https://gitea.blesmrt.net/mikaela/scripts.git
synced 2024-12-23 03:02:53 +01:00
bash/usr-local-bin/fluffychat: prefer snap
This commit is contained in:
parent
8e25155670
commit
5d9780f85c
@ -1,5 +1,17 @@
|
|||||||
#!/usr/bin/env bash
|
#!/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
|
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
|
set +x
|
||||||
|
Loading…
Reference in New Issue
Block a user