4 # This script was adapted from original "startdbd" for Archlinux
6 # verify existence of application folder
7 app_path
=/opt
/DBDesigner4
8 if [ ! -d $app_path ]; then
9 echo -e "Error: DBDesigner4 folder \'$app_path\' not found!"
13 # verify existence of executable
14 if [ ! -f $app_path/DBDesigner4
]; then
15 echo -e "Error: DBDesigner4 executable \'$app_path/DBDesigner4\' not found!"
19 # verify existence of library folder and libraries of DBDesigner4 and Kylixlibs
20 if [ $
(uname
-m) == x86_64
]; then
21 app_ld_path
=/usr
/lib32
/DBDesigner4
22 kylix_ld_path
=/usr
/lib32
/kylix3
24 app_ld_path
=/usr
/lib
/DBDesigner4
25 kylix_ld_path
=/usr
/lib
/kylix3
27 if [ ! -f "$app_ld_path/bplrtl.so.6.9.0" ]; then
28 echo -e "Error: DBDesigner4 library folder \'$app_ld_path\' not found!"
31 if [ ! -f "$kylix_ld_path/libborqt-6.9-qt2.3.so" ]; then
32 echo -e "Error: Kylixlibs folder \'$kylix_ld_path\' not found!"
36 # First check to see if we have an LD_LIBRARY_PATH environment variable
37 if [ -n "$LD_LIBRARY_PATH" ]; then
38 # we do, so prepend our path first
39 export LD_LIBRARY_PATH
="$app_ld_path:$kylix_ld_path:$LD_LIBRARY_PATH"
41 # we do not, so we will create the env var.
42 export LD_LIBRARY_PATH
="$app_ld_path:$kylix_ld_path"
45 # make sure we have something specified for the LANG environment variable
46 if [ -z "$LANG" ]; then
47 # set LANG to an appropriate value
51 if [ ! -d ~
/.DBDesigner4
]; then
55 ## Note: These two require old and unavailable libs (Ex: libXft.so.1)
56 ## around the Internet. Therefore, had to disabilitate even if
57 ## it sacrifices fonts' smoothness.
59 #use the original qt files
60 #export CLX_USE_LIBQT=yes
65 # now run the application, passing any parameters that where specified.
66 echo Starting DBDesigner4 ...
67 $app_path/DBDesigner4 $
* 2> ~
/.DBDesigner
4/DBD4.log