scripts/bash/usr-local-bin/fluffychat

17 lines
433 B
Plaintext
Raw Normal View History

#!/usr/bin/env bash
# Flutter doesn't support flatpak, so Snap is the least bad Fluffy experience.
set -x
2023-05-18 11:25:47 +02:00
if [ -f /snap/bin/fluffychat ]; then
# https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1951491/comments/104
unset DBUS_SESSION_BUS_ADDRESS
2024-02-29 17:41:59 +01:00
# I am supposed to be a Finnish localizer so my eo over fi as protest
# doesn't work here!
export LANGUAGE=fi:eo:en
2023-04-06 11:03:10 +02:00
snap run fluffychat $@
else
2023-04-06 11:03:10 +02:00
/usr/bin/fluffychat
fi
set +x