c8ddc5173cb67d555c5bb62a8695313d4b4a5203
[AGL/meta-agl-demo.git] / recipes-wam / wam / files / WebAppMgr.env
1 ##### AGL: not set in WebAppMgr@.service
2 #XDG_SESSION_ID="c2"
3
4 ##### AGL: set by WebAppMgr@.service (depends on user)
5 #XDG_RUNTIME_DIR="/run/user/%i"
6
7 # Set wam executable file path
8 HOOK_SEGV=NO
9 WAM_EXE_PATH="/usr/bin/WebAppMgr"
10
11 # Set wam name for user-agent
12 WAM_NAME="WebAppManager"
13
14 # Only allow UTF8 encoding for luna-service messages.
15 LS_ENABLE_UTF8=1
16
17 # Set effective userid and groupid
18 #WAM_UID="wam"
19 #WAM_GID="compositor"
20
21 # Set location of error page (will follow localization rules based on this path)
22 #WAM_ERROR_PAGE="file:///usr/share/localization/wam/loaderror.html"
23
24 # suspending javascript execution delay for page visibility
25 WAM_SUSPEND_DELAY_IN_MS=250
26
27 #if [ -e "etc/wam/make_shm.sh" ] ; then
28 #    /etc/wam/make_shm.sh
29 #fi
30
31 # Set user data directory for WebAppMgr
32 ##### AGL: set by WebAppMgr@.service (depends on user)
33 #WAM_DATA_PATH="/home/%i/wamdata"
34
35 # ensure that wam data directories exist
36 #mkdir -p ${WAM_DATA_PATH}
37
38 # set directories permission
39 #chown ${WAM_UID}:${WAM_GID} ${WAM_DATA_PATH}
40
41 # setup 50 Mb maximum for ApplicationCache
42 WAM_APPCACHE_MAXSIZE=52428800
43
44 # setup 10 Mb maximum for ApplicationCache per domain
45 WAM_APPCACHE_DOMAINLIMIT=10485760
46
47 # setup 50 Mb maximum for DiskCache
48 WAM_DISKCACHE_MAXSIZE=52428800
49
50 # setup 256 Kb maximum for resource buffer allocation
51 WAM_RESOURCE_BUFFER_MAX_ALLOC_SIZE=262144
52
53 # setup 1 Mb for resource buffer
54 WAM_RESOURCE_BUFFER_SIZE=1048576
55
56 # setup 200 seconds for watchdog timeout of render process
57 WATCHDOG_RENDER_TIMEOUT=200
58
59 # setup nubmer of raster threads to 1
60 BLINK_NUM_RASTER_THREADS=2
61
62 # use default tile width if not sed by recipe
63 #if [ "$BLINK_NUM_RASTER_THREADS" = "WEBOS${BLINK_NUM_RASTER_THREADS#WEBOS}" ]; then
64 BLINK_NUM_RASTER_THREADS=1
65 #fi
66
67 # setup 6 Mb maximum for the program GPU cache
68 GPU_PROGRAM_CACHE_SIZE=6144
69
70 # disable using enyo system app specfic optimization
71 # currently used optimizations : inline caching off
72 #USE_SYSTEM_APP_OPTIMIZATION="0"
73
74 # Set location of NaCl modules
75 #CHROMIUM_PATH="/usr/palm/applications/com.lge.app.chromium"
76 #NACL_PLUGIN=${CHROMIUM_PATH}"/libppGoogleNaClPluginChrome.so"
77 #NACL_IRT_LIBRARY=${CHROMIUM_PATH}"/nacl_irt_arm.nexe"
78 #NACL_HELPER=${CHROMIUM_PATH}"/nacl_helper"
79 #NACL_HELPER_BOOTSTRAP=${CHROMIUM_PATH}"/nacl_helper_bootstrap"
80
81 # Set location of NPAPI plugins for all Apps including default Apps
82 # This is for the flash plugin of Signage, webOS TV doesn't use it.
83 #PRIVILEGED_PLUGIN_PATH=""
84
85 # Set location of NPAPI plugins for NetCast Apps
86 # NetCast Apps should access only the plugins in this path
87 #NETCAST_PLUGIN_PATH="/usr/lib/BrowserPlugins"
88
89 # Set location of NPAPI plugins for HbbTV app.
90 #HBBTV_PLUGIN_PATH="/usr/lib/HbbtvPlugins"
91
92 # Set InetTV player stored path
93 #INETTV_HTML_PLAYER_PATH="/usr/share/inettv/inettv_player/index.html"
94
95 # Set location of extra libraries
96 #CDM_LIB_PATH="/usr/lib"
97
98 # Set location of all NPAPI plugins
99 NPAPI_PLUGIN_PATH=${HBBTV_PLUGIN_PATH}":"${NETCAST_PLUGIN_PATH}":"${PRIVILEGED_PLUGIN_PATH}
100
101 #if [ -e "etc/wam/make_shm.sh" ] ; then
102 #    /etc/wam/make_shm.sh
103 #fi
104
105 # setup 8 Mb minimum codecache capacity
106 JSC_minGlobalCodeCacheCapacity=8388608
107
108 # Enable more explicit logging of timing with regards to rendering
109 # export WAM2_ENABLE_DEBUG_RENDER_TIMING=1
110
111 # enable Web Inspector and Tellurium if in developer mode
112 TELLURIUM_NUB_PATH=/usr/palm/tellurium/telluriumnub.js
113 ENABLE_INSPECTOR=1
114
115 # Enable cursor by default
116 ENABLE_CURSOR_BY_DEFAULT=1
117
118 # Enable launch optimization
119 ENABLE_LAUNCH_OPTIMIZATION=1
120
121 # Set the duration(seconds) passed from last network activity (e.g. FMP Detector)
122 # If set to a positive value, adjust a custom timeout for a network stable timer in FMPDetector
123 NETWORK_STABLE_TIMEOUT=3
124
125 # please keep it in alphabetical order
126 #WAM_EXTRA_FLAGS=""
127 #WAM_JS_FLAGS=""
128 #WAM_COMMON_SWITCHES=" \
129 #    --application-cache-domain-limit=$WAM_APPCACHE_DOMAINLIMIT \
130 #    --application-cache-size=$WAM_APPCACHE_MAXSIZE \
131 #    --browser-subprocess-path=$WAM_EXE_PATH \
132 #    --disable-direct-npapi-requests \
133 #    --disable-extensions \
134 #    --disable-low-res-tiling \
135 #    --disable-new-video-renderer \
136 #    --disk-cache-size=$WAM_DISKCACHE_MAXSIZE \
137 #    --enable-aggressive-release-policy \
138 #    --enable-accelerated-plugin-rendering \
139 #    --accelerated-plugin-rendering-blacklist=device;drmAgent;sound;service \
140 #    --enable-gpu-rasterization \
141 #    --disable-gpu-rasterization-for-first-frame \
142 #    --enable-key-event-throttling \
143 #    --enable-threaded-compositing \
144 #    --enable-watchdog \
145 #    --hide-selection-handles \
146 #    --ignore-gpu-blacklist \
147 #    --ignore-netif=p2p \
148 #    --in-process-gpu \
149 #    --max-unused-resource-memory-usage-percentage=0 \
150 #    --network-stable-timeout=$NETWORK_STABLE_TIMEOUT \
151 #    --noerrdialogs \
152 #    --num-raster-threads=$BLINK_NUM_RASTER_THREADS \
153 #    --ozone-platform=wayland \
154 #    --remote-debugging-port=9998 \
155 #    --resource-buffer-max-allocation-size=$WAM_RESOURCE_BUFFER_MAX_ALLOC_SIZE \
156 #    --resource-buffer-size=$WAM_RESOURCE_BUFFER_SIZE \
157 #    --touch-events=disabled \
158 #    --ui-disable-opaque-shader-program \
159 #    --user-agent-suffix=SmartTV \
160 #    --user-data-dir=$WAM_DATA_PATH \
161 #    --enable-devtools-experiments \
162 #    --webos-wam \ "
163
164 #WAM_LITE_SWITCHES=" --in-process-zygote "
165
166 #export WAM_WEBOS_LITE=NO
167 #if [ "${WAM_WEBOS_LITE}" = "YES" ] ; then
168 #    export WAM_SWITCHES=${WAM_COMMON_SWITCHES}${WAM_LITE_SWITCHES}
169 #    export SKIA_FONT_CACHE_SIZE=1
170 #    export SKIA_IMAGE_CACHE_SIZE=40
171 #    export SKIA_BACKGROUND_FONT_CACHE_SIZE=0
172 #else
173 #    export WAM_SWITCHES=${WAM_COMMON_SWITCHES}
174 #    export SKIA_FONT_CACHE_SIZE=8
175 #    export SKIA_IMAGE_CACHE_SIZE=80
176 #    export SKIA_BACKGROUND_FONT_CACHE_SIZE=512
177 #fi
178
179 #export WAM_EXTRA_SKIA_CACHE_SWITCHES=" \
180 #    --skia-font-cache-size-mb=$SKIA_FONT_CACHE_SIZE \
181 #    --skia-image-cache-size-mb=$SKIA_IMAGE_CACHE_SIZE \
182 #    --skia-background-font-cache-size-kb=$SKIA_BACKGROUND_FONT_CACHE_SIZE \
183 #    "
184
185 #export WAM_EXTRA_GPU_TUNING_SWITCHES=" \
186 #    --gpu-program-cache-size-kb=$GPU_PROGRAM_CACHE_SIZE \
187 #    "
188 #export WAM_WATCHDOG_RENDER_TIMEOUT_SWITCHES=" \
189 #    --watchdog-render-timeout=$WATCHDOG_RENDER_TIMEOUT \
190 #    "
191
192 #WEBOS_LOAD_ACCESSIBILITY_PLUGIN=1
193
194 #WAM_V8_CODE_CACHE_SWITCHES=" --enable-local-resource-code-cache --disallow-code-cache-from-file-uris-with-query-string "
195
196 # Load any special configuration from plugins
197 #if [ -e "/etc/wam/plugins/conf.sh" ] ; then
198 #    . /etc/wam/plugins/conf.sh || true
199 #fi
200
201 #exec $WAM_EXE_PATH $WAM_SWITCHES $WAM_EXTRA_SKIA_CACHE_SWITCHES $WAM_EXTRA_GPU_TUNING_SWITCHES $WAM_WATCHDOG_RENDER_TIMEOUT_SWITCHES $WAM_EXTRA_FLAGS $WAM_V8_CODE_CACHE_SWITCHES --js-flags="$WAM_JS_FLAGS"
202