mirror of
https://gitea.blesmrt.net/mikaela/scripts.git
synced 2024-12-30 22:52:57 +01:00
19 lines
533 B
Plaintext
19 lines
533 B
Plaintext
|
#!/usr/bin/env bash
|
||
|
|
||
|
# workarounding dependency issues
|
||
|
|
||
|
#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
|
||
|
#set +x
|