Ask Your Question

How best to check if Base is present

asked 2016-05-07 17:02:39 +0200

jay Arr gravatar image

updated 2016-05-07 17:04:56 +0200

I have built a platform independent Base application SecretaryBird and have found a problem with the installation checks I have written. My three installation files (for Windows, Mac & Unix) check for the presence of LO & Java and halt to request the user install them if not present. Unfortunately Ubuntu regularly installs LO without Base so passes my install test but fails with a strange LO error when the application starts up.

My question is what is the fail safe method of testing for the presence of BASE on a system?

Should I simply look for the presence of a named Base executable with my install files? If so where are they and what are they called?

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2016-06-12 13:55:14 +0200

jay Arr gravatar image

decide just to check for the existence of the base file with this shell script:

# Look for BASE shell script
if [ ! -f "$BASE" ] ; then
    echo -e "The database component of LibreOffice, BASE, which is required "
    echo -e "for SecretaryBird, is not present on your system! You need to"
    echo -e "install it BEFORE attempting another installation of SecretaryBird.\n"
    echo "Do you wish to install BASE now?"
    select yn in "Yes" "No" ;  do
        case $yn in
            Yes ) sudo apt-get install libreoffice-base ; break;;
            No  ) read -p "Press [Enter] to abandon this installation." ; exit;;
echo "... BASE installed"
edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2016-05-07 17:02:39 +0200

Seen: 85 times

Last updated: Jun 12 '16