bash/usr-local-bin: cp kile kate && s/kile/kate/g

The goal here is not giving my intrusive thoughts power to make me declare
"sudo rpm-ostree install kate" as essential while the flatpak exists and
I most likely wouldn't even try using kate on files the flatpak won't
have access to
This commit is contained in:
Aminda Suomalainen 2025-05-07 22:52:12 +03:00
parent 16ecbdf5c5
commit a67afa9b4b
Signed by: Mikaela
GPG Key ID: 99392F62BAE30723

16
bash/usr-local-bin/kate Executable file
View File

@ -0,0 +1,16 @@
#!/usr/bin/env bash
set -x
# The usual system-wide installation
if [ -f /usr/bin/kate ]; then
/usr/bin/kate "$@"
# System-wide flatpak
elif [ -f /var/lib/flatpak/exports/bin/org.kde.kate ]; then
flatpak run org.kde.kate "$@"
# User-specific flatpak
elif [ -f ~/.local/share/flatpak/exports/bin/org.kde.kate ]; then
flatpak run --user org.kde.kate "$@"
# If not found.
else
printf "kate doesn't seem to be installed :("
fi
set +x