bash/usr-local-bin: add gearlever since it tends to make appimages less annoying

This commit is contained in:
Aminda Suomalainen 2024-08-04 09:08:19 +03:00
parent e8f418a36d
commit 0db5338732
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q

13
bash/usr-local-bin/gearlever Executable file
View File

@ -0,0 +1,13 @@
#!/usr/bin/env bash
set -x
if [ -f /usr/bin/gearlever ]; then
/usr/bin/gearlever "$@"
elif [ -f /var/lib/flatpak/exports/bin/it.mijorus.gearlever ]; then
flatpak run it.mijorus.gearlever "$@"
elif [ -f ~/.local/share/flatpak/exports/bin/it.mijorus.gearlever ]; then
flatpak run --user it.mijorus.gearlever "$@"
else
print "Gearlever not found :("
notify-send "Gearlever not found :("
fi
set +x