mirror of
https://gitea.blesmrt.net/mikaela/scripts.git
synced 2025-05-30 03:17:46 +02:00
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:
parent
16ecbdf5c5
commit
a67afa9b4b
16
bash/usr-local-bin/kate
Executable file
16
bash/usr-local-bin/kate
Executable 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
|
Loading…
x
Reference in New Issue
Block a user