DYLD_LIBRARY_PATH environment variable shows as empty in terminal
I've written an application connecting to an Oracle database (written in 4D). I need to set DYLD LIBRARYPATH to /Oracle to be able to connect. I did this by creating ~/.MacOSX/environment.plist (see 1 below).
The app works fine, the variable is OK when viewed from within my application (see 2). But it shows as empty in terminal (see 3).
Why just this variable set to empty in terminal?
The actual problem I'm confronted with is a customers iBook which refuses to launch the application from the dock. DYLD LIBRARYPATH shows as empty too when launched from the dock. When double clicking in the finder all goes well...(even from an alias) What is the difference between the finder and the dock for launching an app?
TIA
Koen
This is what I get:
1. Contents of environment.plist:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>NLS_LANG</key>
<string>DUTCH_BELGIUM.WE8ISO8859P15</string>
<key>ORACLE_HOME</key>
<string>/Oracle/OCI/oci</string>
<key>ORA_NLS33</key>
<string>/Oracle/OCI/oci/ocommon/nls/admin/data</string>
<key>TNS_ADMIN</key>
<string>/Oracle/OCI/oci/network/admin</string>
<key>DYLD LIBRARYPATH</key>
<string>/Oracle</string>
</dict>
</plist>
2. env from within my application:
PATH=/usr/bin:/bin:/usr/sbin:/sbin
SECURITYSESSIONID=7ae9a790
HOME=/Users/koenvanh
SHELL=/bin/bash
USER=koenvanh
NLS LANG=DUTCHBELGIUM.WE8ISO8859P15
TNS_ADMIN=/Oracle/OCI/oci/network/admin
ORA_NLS33=/Oracle/OCI/oci/ocommon/nls/admin/data
DYLD LIBRARYPATH=/Oracle
ORACLE_HOME=/Oracle/OCI/oci
_CF_USER_TEXTENCODING=0x1F5:0:0
3. env from terminal:
TERM PROGRAM=AppleTerminal
TERM=xterm-color
SHELL=/bin/bash
NLS LANG=DUTCHBELGIUM.WE8ISO8859P15
TERM PROGRAMVERSION=133
USER=koenvanh
_CF_USER_TEXTENCODING=0x1F5:0:0
TNS_ADMIN=/Oracle/OCI/oci/network/admin
PATH=/bin:/sbin:/usr/bin:/usr/sbin
PWD=/Users/koenvanh
SHLVL=1
HOME=/Users/koenvanh
DYLD LIBRARYPATH=
LOGNAME=koenvanh
ORA_NLS33=/Oracle/OCI/oci/ocommon/nls/admin/data
ORACLE_HOME=/Oracle/OCI/oci
SECURITYSESSIONID=7ae9a790
_=/usr/bin/env
4. env from terminal after removing environment.plist:
TERM PROGRAM=AppleTerminal
TERM=xterm-color
SHELL=/bin/bash
TERM PROGRAMVERSION=133
USER=koenvanh
_CF_USER_TEXTENCODING=0x1F5:0:0
PATH=/bin:/sbin:/usr/bin:/usr/sbin
PWD=/Users/koenvanh
SHLVL=1
HOME=/Users/koenvanh
LOGNAME=koenvanh
SECURITYSESSIONID=7d0223d0
_=/usr/bin/env
PowerBook G4 12" a.o., Mac OS X (10.4.3)