2023-10-09 09:32:49 +02:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
# In case we are on SteamOS?
|
|
|
|
#set -x
|
|
|
|
# The usual system-wide installation
|
|
|
|
if [ -f /usr/bin/kile ]; then
|
2024-03-20 05:50:18 +01:00
|
|
|
/usr/bin/kile "$@"
|
2023-10-09 09:32:49 +02:00
|
|
|
# System-wide flatpak
|
|
|
|
elif [ -f /var/lib/flatpak/exports/bin/org.kde.kile ]; then
|
2024-03-20 05:50:18 +01:00
|
|
|
flatpak run org.kde.kile "$@"
|
2023-10-09 09:32:49 +02:00
|
|
|
# User-specific flatpak
|
|
|
|
elif [ -f ~/.local/share/flatpak/exports/bin/org.kde.kile ]; then
|
2024-03-20 05:50:18 +01:00
|
|
|
flatpak run --user org.kde.kile "$@"
|
2023-10-09 09:32:49 +02:00
|
|
|
# If not found.
|
|
|
|
else
|
|
|
|
printf "kile doesn't seem to be installed :("
|
|
|
|
fi
|
|
|
|
#set +x
|