3 # Entry point for FlightCrew-gui on Unix systems.
4 # Adds the directory the FlightCrew-gui executable is located
5 # in to the LD_LIBRARY_PATH so the custom Qt libs
6 # are recognized and loaded.
8 appname=`basename $0 | sed s,\.sh$,,`
13 if [ "${dirname%$tmp}" != "/" ]; then
16 LD_LIBRARY_PATH=$dirname
17 export LD_LIBRARY_PATH
18 #if no agruments are passed then call just FlightCrew-gui program; else pass arguments.
23 #argument may not be pass correctly without qoutation marks.
24 $dirname/$appname "$*"