#!/bin/sh

# This wrapper is to set the dynamic library search path so that
# the Qt libraries in the 'lib' folder will be used instead of
# whatever Qt version the user happens to have on their system,
# and also sets the current working directory to ensure the help
# database files and 'config' folder (for action menu) are found.

here="${0%/*}"

LD_LIBRARY_PATH="$here"/lib:"$LD_LIBRARY_PATH"
export LD_LIBRARY_PATH
export LANG=en_US
export QT_PLUGIN_PATH="$here"/lib

cd $here

exec "$here"/rube.bin "$@"

