1 ##### AGL: not set in WebAppMgr@.service
4 ##### AGL: set by WebAppMgr@.service (depends on user)
5 #XDG_RUNTIME_DIR="/run/user/%i"
7 # Set wam executable file path
9 WAM_EXE_PATH="/usr/bin/WebAppMgr"
11 # Set wam name for user-agent
12 WAM_NAME="WebAppManager"
14 # Only allow UTF8 encoding for luna-service messages.
17 # Set effective userid and groupid
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"
24 # suspending javascript execution delay for page visibility
25 WAM_SUSPEND_DELAY_IN_MS=250
27 #if [ -e "etc/wam/make_shm.sh" ] ; then
28 # /etc/wam/make_shm.sh
31 # Set user data directory for WebAppMgr
32 ##### AGL: set by WebAppMgr@.service (depends on user)
33 #WAM_DATA_PATH="/home/%i/wamdata"
35 # ensure that wam data directories exist
36 #mkdir -p ${WAM_DATA_PATH}
38 # set directories permission
39 #chown ${WAM_UID}:${WAM_GID} ${WAM_DATA_PATH}
41 # setup 50 Mb maximum for ApplicationCache
42 WAM_APPCACHE_MAXSIZE=52428800
44 # setup 10 Mb maximum for ApplicationCache per domain
45 WAM_APPCACHE_DOMAINLIMIT=10485760
47 # setup 50 Mb maximum for DiskCache
48 WAM_DISKCACHE_MAXSIZE=52428800
50 # setup 256 Kb maximum for resource buffer allocation
51 WAM_RESOURCE_BUFFER_MAX_ALLOC_SIZE=262144
53 # setup 1 Mb for resource buffer
54 WAM_RESOURCE_BUFFER_SIZE=1048576
56 # setup 200 seconds for watchdog timeout of render process
57 WATCHDOG_RENDER_TIMEOUT=200
59 # setup nubmer of raster threads to 1
60 BLINK_NUM_RASTER_THREADS=2
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
67 # setup 6 Mb maximum for the program GPU cache
68 GPU_PROGRAM_CACHE_SIZE=6144
70 # disable using enyo system app specfic optimization
71 # currently used optimizations : inline caching off
72 #USE_SYSTEM_APP_OPTIMIZATION="0"
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"
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=""
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"
89 # Set location of NPAPI plugins for HbbTV app.
90 #HBBTV_PLUGIN_PATH="/usr/lib/HbbtvPlugins"
92 # Set InetTV player stored path
93 #INETTV_HTML_PLAYER_PATH="/usr/share/inettv/inettv_player/index.html"
95 # Set location of extra libraries
96 #CDM_LIB_PATH="/usr/lib"
98 # Set location of all NPAPI plugins
99 NPAPI_PLUGIN_PATH=${HBBTV_PLUGIN_PATH}":"${NETCAST_PLUGIN_PATH}":"${PRIVILEGED_PLUGIN_PATH}
101 #if [ -e "etc/wam/make_shm.sh" ] ; then
102 # /etc/wam/make_shm.sh
105 # setup 8 Mb minimum codecache capacity
106 JSC_minGlobalCodeCacheCapacity=8388608
108 # Enable more explicit logging of timing with regards to rendering
109 # export WAM2_ENABLE_DEBUG_RENDER_TIMING=1
111 # enable Web Inspector and Tellurium if in developer mode
112 TELLURIUM_NUB_PATH=/usr/palm/tellurium/telluriumnub.js
115 # Enable cursor by default
116 ENABLE_CURSOR_BY_DEFAULT=1
118 # Enable launch optimization
119 ENABLE_LAUNCH_OPTIMIZATION=1
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
125 # please keep it in alphabetical order
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 \
149 # --max-unused-resource-memory-usage-percentage=0 \
150 # --network-stable-timeout=$NETWORK_STABLE_TIMEOUT \
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 \
164 #WAM_LITE_SWITCHES=" --in-process-zygote "
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
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
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 \
185 #export WAM_EXTRA_GPU_TUNING_SWITCHES=" \
186 # --gpu-program-cache-size-kb=$GPU_PROGRAM_CACHE_SIZE \
188 #export WAM_WATCHDOG_RENDER_TIMEOUT_SWITCHES=" \
189 # --watchdog-render-timeout=$WATCHDOG_RENDER_TIMEOUT \
192 #WEBOS_LOAD_ACCESSIBILITY_PLUGIN=1
194 #WAM_V8_CODE_CACHE_SWITCHES=" --enable-local-resource-code-cache --disallow-code-cache-from-file-uris-with-query-string "
196 # Load any special configuration from plugins
197 #if [ -e "/etc/wam/plugins/conf.sh" ] ; then
198 # . /etc/wam/plugins/conf.sh || true
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"