scripts/bash/usr-local-bin/libreoffice

19 lines
537 B
Plaintext
Raw Permalink Normal View History

#!/usr/bin/env bash
# workarounding dependency issues
2024-04-19 09:00:33 +02:00
set -x
# The usual system-wide installation
if [ -f /var/lib/flatpak/exports/bin/org.libreoffice.LibreOffice ]; then
flatpak run org.libreoffice.LibreOffice "$@"
# User-specific flatpak
elif [ -f ~/.local/share/flatpak/exports/bin/org.libreoffice.LibreOffice ]; then
flatpak run --user org.libreoffice.LibreOffice "$@"
# The usual installation
elif [ -f /usr/bin/libreoffice ]; then
/usr/bin/libreoffice "$@"
else
printf "LibreOffice doesn't seem to be installed :("
fi
2024-04-19 09:00:33 +02:00
set +x