Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@6.agl.guppy #19

Open
wants to merge 83 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
83 commits
Select commit Hold shift + click to select a range
53e8804
Make PmLog optional
Apr 24, 2018
16551c9
[agl][build][luna-service] Make luna service optional
Apr 24, 2018
76ecdec
[agl][build][webos] Guard WebOS specific parts
Apr 24, 2018
4d9330b
[agl][build] Hardcode MACHINE_NAME for now
Apr 24, 2018
6720608
Add empty stub for agl service integration
Apr 25, 2018
d62bc2c
[agl][build] Add --launch-app parameter
Apr 26, 2018
16cf102
[agl][build] Parse launch app appinfo.json
Apr 26, 2018
59db579
[agl][build] Trigger load visually committed if not OS_WEBOS
Apr 26, 2018
4d81d37
Read config.xml instead fo appinfo.json
Apr 27, 2018
d630f64
[agl] Separate wam host and client instances
Apr 27, 2018
1a0f910
[agl] Set the window surface ID later
Apr 27, 2018
aebdb29
[agl][build] Add systemd startup script and environment
andre-rosa Apr 27, 2018
c2bfbe0
[agl] Update wam host instance startup command
andre-rosa May 1, 2018
7cfb6d4
[agl] Set the IVI pid at the right time.
Apr 28, 2018
f08868f
[agl] Separate service lock and socket implementation
May 2, 2018
ae1928e
[agl] Add support for wm/hs 2017
May 15, 2018
defc0d4
[agl] Add support for homescreen app switching
May 29, 2018
418cad6
[agl] Add support for shared browser process model
May 30, 2018
cb342f3
Use weaker Wants instead of BindsTo dependency on weston
andre-rosa Jun 2, 2018
d0a0b71
[WIP] Launch tinyproxy
jdapena Sep 20, 2018
d73fa58
Launch webapp using tinyproxy.
abhijeetk Sep 28, 2018
1dcc143
Used new WindowManager APIs
sebd71 Aug 21, 2018
95af1ff
Update user directory
jkim-julie Oct 16, 2018
688011c
Add RestartSec
jkim-julie Oct 17, 2018
c631f32
[agl] Fix indentation issues
nickdiego Nov 9, 2018
524140c
[agl][qtless] Add initial JsonHelper implementation
nickdiego Nov 9, 2018
4e314a1
[agl][qtless] Do not use QJson in PalmSystem and WebApp
nickdiego Nov 9, 2018
c7b6bca
[agl][qtless] Do not use QJson in ApplicationDescription
nickdiego Nov 9, 2018
a0dabc2
[agl][qtless] Do not use QJson in ContainerAppManager
nickdiego Nov 9, 2018
f7c5fde
[agl][qtless] Do not use QJson in WebAppFactoryManager
nickdiego Nov 9, 2018
cf4a138
[agl][qtless] Do not use QJson in WebPageBase
nickdiego Nov 9, 2018
ac9a16b
[agl][qtless] Do not use QJson in WebAppManager and WebProcessManager
nickdiego Nov 9, 2018
6d79a2d
[agl][qtless] Do not use QJson in WebAppManagerService
nickdiego Nov 9, 2018
71fda64
[agl][qtless] Drop WebAppFactory pluggable system
nickdiego Nov 12, 2018
5d1c5f8
Change deprecated include <assert.h> to <cassert>
hferreiro Nov 13, 2018
58ce001
Store proxy rules in WebView profiles
hferreiro Nov 8, 2018
9da6bb7
Start wam as systemd user service correcting its dependencies
andre-rosa Nov 15, 2018
a4d577f
[agl][jsoncpp] Better handle empty JSON strings
nickdiego Nov 15, 2018
14213fa
[agl][jsoncpp] Fix sub-objects serialization
nickdiego Nov 15, 2018
7904407
[agl][qtless] Cleanup Q_SLOTS usage in WebPage classes
nickdiego Nov 16, 2018
af07c1a
[agl][qtless] Drop signal/slots in favor of WebPageObserver
nickdiego Nov 16, 2018
a179a02
Delete the webapp profile mapping when closed
hferreiro Nov 15, 2018
cb5b4d7
Replace |m_pid_v| with |m_pid_map|
jkim-julie Nov 21, 2018
62975de
[DROP][agl][chromium68] Pass the correct app_runtime::WebViewProfile
hferreiro Dec 5, 2018
6ea59fa
[agl][chromium68] Disable gpu process
nickdiego Dec 6, 2018
aef3401
[WIP][agl] Improve debug/logging messages
nickdiego Dec 5, 2018
0a4bd6a
[agl][chromium68] Fix crash when setting proxy server
nickdiego Dec 10, 2018
b7fa465
[agl] React on Inactive and Active events
msisov Dec 21, 2018
8d7e56c
[agl] Register only one surface.
msisov Dec 21, 2018
5254eb4
[agl] use appid instead of appname in tap_shortcut
antiapuentes Apr 23, 2019
ed37e18
[agl] Use ShowWindow event instead of TapShortcut
antiapuentes Apr 23, 2019
9c875f1
[agl][qtless] Add StringUtils initial implementation
nickdiego Nov 20, 2018
159cef4
[agl][qtless] Fix error handling when converting strings to numbers
nickdiego May 23, 2019
ba798eb
[agl][qtless] Replace Qt data container types by their STL counterpars
nickdiego Nov 19, 2018
700e456
[agl][qtless] Migrate ApplicationDescription away from QString
nickdiego Nov 20, 2018
75aaf56
[agl][qtless] Get rid of QString usage in WebProcessManager
nickdiego Nov 20, 2018
8949895
[agl][qtless] Migrate WebAppManager away from QString
nickdiego Nov 21, 2018
e055f56
[agl][qtless] Do not use QString WebAppManager in JS strings building
nickdiego Nov 21, 2018
20f57de
[agl][qtless] QString-less WebAppManager: SystemLanguage and DeviceInfo
nickdiego Nov 21, 2018
502b9f6
[agl][qtless] QString-less WebApp/WebPage: appId
nickdiego Nov 22, 2018
903e2fa
[agl][qtless] QString-less WebApp: Remove leftovers
nickdiego Nov 22, 2018
ba7ece0
[agl][qtless] Migrate WebAppWayland away from QVariant
nickdiego Nov 22, 2018
47bd88b
[agl][qtless] Do not use QString in WebPage
nickdiego Nov 22, 2018
815191c
[agl][qtless] Do not use QString in NetworkStatus
nickdiego Nov 22, 2018
41ecf4c
[agl][qtless] Do not use QString in WebAppManagerConfig
nickdiego Nov 22, 2018
a5ebdc5
[agl][qtless] Migrate PalmSystem away from QString
nickdiego Nov 23, 2018
9f74ec6
[agl][qtless] QString-less WAM: Remove leftovers
nickdiego Nov 23, 2018
00f7a1f
[agl][qtless] Add Url parsing code
nickdiego Nov 26, 2018
45108f9
[agl][qtless] Remove QVariant leftovers
nickdiego Nov 27, 2018
0c7d257
[agl][qtless] Replace QLocale by Boost.Locale
nickdiego Nov 27, 2018
42770ee
[agl][qtless] Trim timestamp string in NetworkStatus
nickdiego Nov 28, 2018
2615c15
[agl][qtless] Use const char arrays instead of macros for WindowTypes
nickdiego Nov 28, 2018
20a1ec2
[agl][qtless] Remove Qt dependency from qmake files
nickdiego May 15, 2019
aaa56e3
[agl][qtless] Get rid of Qt usage in webos/DeviceInfoImpl
nickdiego May 15, 2019
971df2a
[agl][qtless] Use unordered_map instead of std::map
nickdiego May 23, 2019
3e9ce0d
[agl][qtless] Port to CMake
nickdiego May 16, 2019
9244327
[agl] Explicitly link WAM binary with ilmCommon library
jaragunde Jun 21, 2019
574c65b
[agl] Explictly link WAM binary with WAMCore lib
jaragunde Jun 21, 2019
f0166b5
[agl] Remote debugging should work only on debug mode
antiapuentes Jun 21, 2019
8271e13
[agl] Update the path for the Remote Web Inspector
antiapuentes Jun 25, 2019
dcb4779
Create socket and lock files in XDG_RUNTIME_DIR.
jaragunde Aug 3, 2019
272d3a3
[agl] Suspend/resume webapps depending on visibility
antiapuentes Sep 18, 2019
2342700
[agl] Implement an envvar for launcher to wait for host process
jaragunde Oct 2, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Copyright (c) 2019 LG Electronics, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0

cmake_minimum_required(VERSION 3.0.0)
project(WebAppMgr VERSION 1.0.0 LANGUAGES CXX)

set(PLATFORM_NAME "WebOS" CACHE STRING "Target platform name")
set(CHROMIUM_SRC_DIR "" CACHE PATH "Chromium source directory path")

option(USE_PMLOG "Use PmLog library (WebOS)")
option(USE_LUNA_SERVICE "Use Luna service (WebOS)")
option(USE_SNAPSHOT_BOOT "Use snapshot boot (WebOS)")

set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

add_subdirectory(src)

60 changes: 53 additions & 7 deletions common.pri
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
#
# SPDX-License-Identifier: Apache-2.0

CONFIG = qt

BUILD_TYPE = release # or debug
ENV_BUILD_TYPE = $$(BUILD_TYPE)
!isEmpty(ENV_BUILD_TYPE) {
Expand All @@ -32,12 +30,11 @@ isEmpty(PREFIX) {
}

CONFIG += link_pkgconfig
QT = core

################################################################################
# Decide MACHINE_NAME and PLATFORM

MACHINE_NAME = $$(MACHINE)
MACHINE_NAME = "minnowboard"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, this needs to be fixed. If AGL is now using cmake, I guess we can avoid the AGL specific changes in qmake?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure. We can forget about this patch.


isEmpty(PLATFORM) {
error("PLATFORM wasn't set")
Expand All @@ -47,6 +44,8 @@ DEFINES += $$PLATFORM

contains(PLATFORM, PLATFORM_WEBOS) {
include(device.pri)
CONFIG = qt
QT = core
} else {
isEmpty(MACHINE_NAME) {
error(MACHINE_NAME should not be empty. $$MACHINE_NAME)
Expand All @@ -69,20 +68,59 @@ snapshot_boot {
LIBS += -lsnapshot-boot
}

###############################################################################
# pmlog
#
# Please use CONFIG_BUILD in your recipe.
#
# EXTRA_QMAKEVARS_PRE += "CONFIG_BUILD+=pmlog"
contains(CONFIG_BUILD, pmlog) {
DEFINES += HAS_PMLOG
CONFIG += pmlog
message($$MACHINE_NAME $$PLATFORM use pmlog)
}

###############################################################################
# luna-service
#
# Please use CONFIG_BUILD in your recipe.
#
# EXTRA_QMAKEVARS_PRE += "CONFIG_BUILD+=luna_service"
contains(CONFIG_BUILD, luna_service) {
DEFINES += HAS_LUNA_SERVICE
CONFIG += luna_service
message($$MACHINE_NAME $$PLATFORM use luna service)
}


################################################################################
# agl-service
#
# Please use CONFIG_BUILD in your recipe.
#
# EXTRA_QMAKEVARS_PRE += "CONFIG_BUILD+=agl_service"
contains(CONFIG_BUILD, agl_service) {
DEFINES += HAS_AGL_SERVICE
CONFIG += agl_service
PKGCONFIG += libwindowmanager libhomescreen ilmControl
message($$MACHINE_NAME $$PLATFORM use agl service)
}


################################################################################
# Path and CFLAGS

VPATH += \
./src \
./src/agl \
./src/core \
./src/platform \
./src/platform/webengine \
./src/plugin \
./src/util \
./src/webos

PKGCONFIG += glib-2.0
PKGCONFIG += glib-2.0 libxml-2.0 jsoncpp

INCLUDEPATH += $$VPATH

Expand All @@ -93,15 +131,15 @@ INCLUDEPATH += $${CHROMIUM_SRC_DIR}

DEFINES += PRELOADMANAGER_ENABLED

QMAKE_CXXFLAGS += -fno-rtti -fno-exceptions -Wall -fpermissive -funwind-tables
QMAKE_CXXFLAGS += -fno-rtti -Wall -fpermissive -funwind-tables
QMAKE_CXXFLAGS += -std=c++14
QMAKE_LFLAGS += -rdynamic

QMAKE_CFLAGS += -Wno-psabi
QMAKE_CXXFLAGS += -Wno-psabi
QMAKE_LFLAGS += -Wl,--no-as-needed

QMAKE_CXXFLAGS += -Werror \
#QMAKE_CXXFLAGS += -Werror \

################################################################################
# .o and .moc
Expand All @@ -112,3 +150,11 @@ MOC_DIR = $$DESTDIR/.moc
LIBS += -L$$DESTDIR

LIBS += -lcbe

# Link against boost_filesystem assuming it's on WAM's sysroot
# This relies on a patch in meta-agl-lge adding boost as dependency
# of WAM.
# TODO: Once WAM build system is ported to CMake, better configure-time checkings
# will be used (e.g: find_package(Boost, 1.68 COMPONENTS filesystem REQUIRED).
LIBS += -lboost_filesystem

198 changes: 198 additions & 0 deletions files/launch/WebAppMgr.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,198 @@
XDG_SESSION_ID="c2"
XDG_RUNTIME_DIR="/run/user/0"

# Set wam executable file path
HOOK_SEGV=NO
WAM_EXE_PATH="/usr/bin/WebAppMgr"

# Set wam name for user-agent
WAM_NAME="WebAppManager"

# Only allow UTF8 encoding for luna-service messages.
LS_ENABLE_UTF8=1

# Set effective userid and groupid
#WAM_UID="wam"
#WAM_GID="compositor"

# Set location of error page (will follow localization rules based on this path)
#WAM_ERROR_PAGE="file:///usr/share/localization/wam/loaderror.html"

# suspending javascript execution delay for page visibility
WAM_SUSPEND_DELAY_IN_MS=250

#if [ -e "etc/wam/make_shm.sh" ] ; then
# /etc/wam/make_shm.sh
#fi

# Set user data directory for WebAppMgr
WAM_DATA_PATH="/home/0/wamdata"

# ensure that wam data directories exist
#mkdir -p ${WAM_DATA_PATH}

# set directories permission
#chown ${WAM_UID}:${WAM_GID} ${WAM_DATA_PATH}

# setup 50 Mb maximum for ApplicationCache
WAM_APPCACHE_MAXSIZE=52428800

# setup 10 Mb maximum for ApplicationCache per domain
WAM_APPCACHE_DOMAINLIMIT=10485760

# setup 50 Mb maximum for DiskCache
WAM_DISKCACHE_MAXSIZE=52428800

# setup 256 Kb maximum for resource buffer allocation
WAM_RESOURCE_BUFFER_MAX_ALLOC_SIZE=262144

# setup 1 Mb for resource buffer
WAM_RESOURCE_BUFFER_SIZE=1048576

# setup 200 seconds for watchdog timeout of render process
WATCHDOG_RENDER_TIMEOUT=200

# setup nubmer of raster threads to 1
BLINK_NUM_RASTER_THREADS=2

# use default tile width if not sed by recipe
#if [ "$BLINK_NUM_RASTER_THREADS" = "WEBOS${BLINK_NUM_RASTER_THREADS#WEBOS}" ]; then
BLINK_NUM_RASTER_THREADS=1
#fi

# setup 6 Mb maximum for the program GPU cache
GPU_PROGRAM_CACHE_SIZE=6144

# disable using enyo system app specfic optimization
# currently used optimizations : inline caching off
#USE_SYSTEM_APP_OPTIMIZATION="0"

# Set location of NaCl modules
#CHROMIUM_PATH="/usr/palm/applications/com.lge.app.chromium"
#NACL_PLUGIN=${CHROMIUM_PATH}"/libppGoogleNaClPluginChrome.so"
#NACL_IRT_LIBRARY=${CHROMIUM_PATH}"/nacl_irt_arm.nexe"
#NACL_HELPER=${CHROMIUM_PATH}"/nacl_helper"
#NACL_HELPER_BOOTSTRAP=${CHROMIUM_PATH}"/nacl_helper_bootstrap"

# Set location of NPAPI plugins for all Apps including default Apps
# This is for the flash plugin of Signage, webOS TV doesn't use it.
#PRIVILEGED_PLUGIN_PATH=""

# Set location of NPAPI plugins for NetCast Apps
# NetCast Apps should access only the plugins in this path
#NETCAST_PLUGIN_PATH="/usr/lib/BrowserPlugins"

# Set location of NPAPI plugins for HbbTV app.
#HBBTV_PLUGIN_PATH="/usr/lib/HbbtvPlugins"

# Set InetTV player stored path
#INETTV_HTML_PLAYER_PATH="/usr/share/inettv/inettv_player/index.html"

# Set location of extra libraries
#CDM_LIB_PATH="/usr/lib"

# Set location of all NPAPI plugins
NPAPI_PLUGIN_PATH=${HBBTV_PLUGIN_PATH}":"${NETCAST_PLUGIN_PATH}":"${PRIVILEGED_PLUGIN_PATH}

#if [ -e "etc/wam/make_shm.sh" ] ; then
# /etc/wam/make_shm.sh
#fi

# setup 8 Mb minimum codecache capacity
JSC_minGlobalCodeCacheCapacity=8388608

# Enable more explicit logging of timing with regards to rendering
# export WAM2_ENABLE_DEBUG_RENDER_TIMING=1

# enable Web Inspector and Tellurium if in developer mode
TELLURIUM_NUB_PATH=/usr/palm/tellurium/telluriumnub.js
ENABLE_INSPECTOR=1

# Enable cursor by default
ENABLE_CURSOR_BY_DEFAULT=1

# Enable launch optimization
ENABLE_LAUNCH_OPTIMIZATION=1

# Set the duration(seconds) passed from last network activity (e.g. FMP Detector)
# If set to a positive value, adjust a custom timeout for a network stable timer in FMPDetector
NETWORK_STABLE_TIMEOUT=3

# please keep it in alphabetical order
#WAM_EXTRA_FLAGS=""
#WAM_JS_FLAGS=""
#WAM_COMMON_SWITCHES=" \
# --application-cache-domain-limit=$WAM_APPCACHE_DOMAINLIMIT \
# --application-cache-size=$WAM_APPCACHE_MAXSIZE \
# --browser-subprocess-path=$WAM_EXE_PATH \
# --disable-direct-npapi-requests \
# --disable-extensions \
# --disable-low-res-tiling \
# --disable-new-video-renderer \
# --disk-cache-size=$WAM_DISKCACHE_MAXSIZE \
# --enable-aggressive-release-policy \
# --enable-accelerated-plugin-rendering \
# --accelerated-plugin-rendering-blacklist=device;drmAgent;sound;service \
# --enable-gpu-rasterization \
# --disable-gpu-rasterization-for-first-frame \
# --enable-key-event-throttling \
# --enable-threaded-compositing \
# --enable-watchdog \
# --hide-selection-handles \
# --ignore-gpu-blacklist \
# --ignore-netif=p2p \
# --in-process-gpu \
# --max-unused-resource-memory-usage-percentage=0 \
# --network-stable-timeout=$NETWORK_STABLE_TIMEOUT \
# --noerrdialogs \
# --num-raster-threads=$BLINK_NUM_RASTER_THREADS \
# --ozone-platform=wayland \
# --remote-debugging-port=9998 \
# --resource-buffer-max-allocation-size=$WAM_RESOURCE_BUFFER_MAX_ALLOC_SIZE \
# --resource-buffer-size=$WAM_RESOURCE_BUFFER_SIZE \
# --touch-events=disabled \
# --ui-disable-opaque-shader-program \
# --user-agent-suffix=SmartTV \
# --user-data-dir=$WAM_DATA_PATH \
# --enable-devtools-experiments \
# --webos-wam \ "

#WAM_LITE_SWITCHES=" --in-process-zygote "

#export WAM_WEBOS_LITE=NO
#if [ "${WAM_WEBOS_LITE}" = "YES" ] ; then
# export WAM_SWITCHES=${WAM_COMMON_SWITCHES}${WAM_LITE_SWITCHES}
# export SKIA_FONT_CACHE_SIZE=1
# export SKIA_IMAGE_CACHE_SIZE=40
# export SKIA_BACKGROUND_FONT_CACHE_SIZE=0
#else
# export WAM_SWITCHES=${WAM_COMMON_SWITCHES}
# export SKIA_FONT_CACHE_SIZE=8
# export SKIA_IMAGE_CACHE_SIZE=80
# export SKIA_BACKGROUND_FONT_CACHE_SIZE=512
#fi

#export WAM_EXTRA_SKIA_CACHE_SWITCHES=" \
# --skia-font-cache-size-mb=$SKIA_FONT_CACHE_SIZE \
# --skia-image-cache-size-mb=$SKIA_IMAGE_CACHE_SIZE \
# --skia-background-font-cache-size-kb=$SKIA_BACKGROUND_FONT_CACHE_SIZE \
# "

#export WAM_EXTRA_GPU_TUNING_SWITCHES=" \
# --gpu-program-cache-size-kb=$GPU_PROGRAM_CACHE_SIZE \
# "
#export WAM_WATCHDOG_RENDER_TIMEOUT_SWITCHES=" \
# --watchdog-render-timeout=$WATCHDOG_RENDER_TIMEOUT \
# "

#WEBOS_LOAD_ACCESSIBILITY_PLUGIN=1

#WAM_V8_CODE_CACHE_SWITCHES=" --enable-local-resource-code-cache --disallow-code-cache-from-file-uris-with-query-string "

# Load any special configuration from plugins
#if [ -e "/etc/wam/plugins/conf.sh" ] ; then
# . /etc/wam/plugins/conf.sh || true
#fi

#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"

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need some cleanup here: remove all the comments, then move the launch files for AGL to an independent folder.

27 changes: 27 additions & 0 deletions files/launch/WebAppMgr.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# @@@LICENSE
#
# Copyright (c) 2017-2018 LG Electronics, Inc.
#
# Confidential computer software. Valid license from LG required for
# possession, use or copying. Consistent with FAR 12.211 and 12.212,
# Commercial Computer Software, Computer Software Documentation, and
# Technical Data for Commercial Items are licensed to the U.S. Government
# under vendor's standard commercial license.
#
# LICENSE@@@

[Unit]
Description="WebAppMgr is responsible for running web apps and manage their lifecycle"
After=afm-service-windowmanager-service-2017@0.1.service afm-appli-homescreen-2017@0.1.service
Wants=afm-service-windowmanager-service-2017@0.1.service afm-appli-homescreen-2017@0.1.service

[Service]
Type=simple
OOMScoreAdjust=-1000
EnvironmentFile=-/etc/default/WebAppMgr.env
ExecStart=/usr/bin/WebAppMgr --no-sandbox --in-process-gpu --remote-debugging-port=9998 --user-data-dir="/home/0/wamdata" --webos-wam
Restart=on-failure
RestartSec=50

[Install]
WantedBy=default.target
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, as said, it'd be better to move this to an independent folder. I.e. files/launch/agl/...

11 changes: 11 additions & 0 deletions files/pkgconfig/WebAppMgr.pc.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
prefix=@WAM_DEST_DIR@
exec_prefix=${prefix}
libdir=${prefix}/lib
includedir=${prefix}/include/webappmanager

Name: libWebAppMgr
Description: Web Application Manager library
Version: 1.0.0

Libs: -L${libdir} @PKGCONFIG_WAM_LIBS@
Cflags: -I${includedir}
Loading