mirror of
https://gitea.blesmrt.net/mikaela/scripts.git
synced 2024-11-23 19:59:22 +01:00
18 lines
458 B
Bash
Executable File
18 lines
458 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# In case we are on SteamOS?
|
|
#set -x
|
|
# The usual system-wide installation
|
|
if [ -f /usr/bin/kile ]; then
|
|
/usr/bin/kile $@
|
|
# System-wide flatpak
|
|
elif [ -f /var/lib/flatpak/exports/bin/org.kde.kile ]; then
|
|
flatpak run org.kde.kile $@
|
|
# User-specific flatpak
|
|
elif [ -f ~/.local/share/flatpak/exports/bin/org.kde.kile ]; then
|
|
flatpak run --user org.kde.kile $@
|
|
# If not found.
|
|
else
|
|
printf "kile doesn't seem to be installed :("
|
|
fi
|
|
#set +x
|