Artifact Content
Not logged in

Artifact 8a95cb5558088b1a8f63021c1b67fbccf5077563:

Wiki page [Environment Variables] by chw 2019-04-26 07:14:09.
D 2019-04-26T07:14:09.686
L Environment\sVariables
P 1e4eed4b750d006bd186e6903e54adb174b3b434
U chw
W 1503
<h2>Environment Variables</h2>

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 4a823738510fad90319037fbdda2c35a