Artifact
1e4eed4b750d006bd186e6903e54adb174b3b434:
Wiki page
[Environment Variables] by
chw
2015-02-01 20:36:56.
D 2015-02-01T20:36:56.623
L Environment\sVariables
P 4e10f1a7d578ec00e2f4f3c08b0a821f5c48a19a
U chw
W 1469
Some environment variables in the <tt>env</tt> array are setup on early startup of AndroWish.
<tt>env(EXTERNAL_FILES)</tt>
App specific directory on external storage.
<tt>env(EXTERNAL_STORAGE)</tt>
Path name of external storage (could be internal SD card).
<tt>env(EXTERNAL_STORAGE2)</tt>
Path name of external storage (real external SD card).
<tt>env(HOME)</tt>
App's home directory (internal storage), usually <tt>/data/data/tk.tcl.wish/files</tt>.
<tt>env(INTERNAL_STORAGE)</tt>
App specific directory on internal storage (identical with <tt>$env(HOME)</tt>).
<tt>env(LANG)</tt>
System language.
<tt>env(LD_LIBRARY_PATH)</tt>
Load path for shared libraries including app specific directory (usually <tt>/data/data/tk.tcl.wish/libs</tt>).
<tt>env(OBB_DIR)</tt>
On some Android versions extra stuff bundled with the app (currently unused).
<tt>env(PACKAGE_CODE_PATH)</tt>
Path name of the app's APK.
<tt>env(PACKAGE_NAME)</tt>
Package name where the app's main class comes from (<tt>tk.tcl.wish</tt>).
<tt>env(PATH)</tt>
Path for <tt>exec(n)</tt> including app specific directory
<tt>env(TMPDIR)</tt>
Path name for temporary files (usually <tt>/data/data/tk.tcl.wish/cache</tt>, fallback is value of <tt>$env(HOME)</tt>).
To test if a Tcl script is executing on the Android platform <tt>sdltk android</tt> (see [sdltk command]) should be used.
Z 169dba3bf5d76e92c5bdf4e57085a7cc