summaryrefslogtreecommitdiffstats
path: root/recipes-demo-hmi/navigation/mapviewer/mapviewer.service
blob: c3f5515af4020184f7ad7ab1f018215d9145c53c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
[Unit]
Conflicts=getty@tty1.service
After=weston.service HomeScreen.service

# map viewr is a child application which can work with navigation.
# This app requires mapdata. It has to be stored at /var/mapdata/navi_data_UK .
# currently the position to be shown is 384x368 surface on screen 1 for CES2017 cluster demo.

[Service]
Environment=NAVI_DATA_DIR=/var/mapdata/navi_data_UK/japan_TR9 XDG_RUNTIME_DIR=/run/user/0
ExecStartPre=/bin/sleep 5
ExecStart=/usr/bin/mapview
ExecStartPost=/usr/bin/LayerManagerControl create layer 1000 1920 1080
ExecStartPost=/usr/bin/LayerManagerControl set layer 1000 visibility 1
ExecStartPost=/usr/bin/LayerManagerControl set screen 1 render order 1000
ExecStartPost=/usr/AGL/mapviewer/mapviewer-settings.sh

ExecStop=/usr/bin/killall -s KILL mapview
Type=simple
Restart=always

[Install]
WantedBy=default.target