Modification of the ChangeLog.
[profile/ivi/ico-uxf-homescreen.git] / start_homescreen_appcore
1 #!/bin/sh
2
3 # 1. kill pulseaudio and weston, and start pulseaudio
4 /usr/bin/killall pulseaudio > /dev/null 2>&1
5 /usr/bin/killall weston > /dev/null 2>&1
6 /bin/sleep 0.2
7 /usr/bin/killall -9 pulseaudio > /dev/null 2>&1
8 /usr/bin/killall -9 weston > /dev/null 2>&1
9
10 # 2. Delete log file
11 /bin/mkdir /var/log/ico > /dev/null 2>&1
12 /bin/chmod -R 0777 /var/log/ico > /dev/null 2>&1
13 /bin/rm -f /var/log/ico/* > /dev/null 2>&1
14
15 # 3. Weston/Wayland Envionment
16 export XDG_RUNTIME_DIR=/tmp/run-root
17 export QT_QPA_PLATFORM=wayland
18 export ELM_ENGINE=wayland_egl
19 export ECORE_EVAS_ENGINE=wayland_egl
20 #export ELM_ENGINE=wayland_shm
21 #export ECORE_EVAS_ENGINE=wayland_shm
22 export EVAS_FONT_DPI=72
23 export ECORE_IMF_MODULE=isf
24 export ELM_MODULES="ctxpopup_copypasteUI>entry/api:datetime_input_ctxpopup>datetime/api"
25 export ELM_SCALE="0.7"
26 export ELM_PROFILE=mobile
27
28 # 4. Start Device Input Controller for eGalax TouchPanel
29 #/usr/bin/ico_ictl-touch_egalax -t
30 /usr/bin/ico_ictl-touch_egalax
31 sleep 0.3
32
33 # 5. Start Weston
34 ORG_UMASK=`umask`
35 umask 000
36 /usr/bin/weston --backend=drm-backend.so --idle-time=0 --log=/var/log/weston.log &
37 sync;sync
38 sleep 0.8
39 if [ -f $XDG_RUNTIME_DIR/wayland-0 ] ; then
40         chmod 0777 $XDG_RUNTIME_DIR/wayland-0
41 fi
42 umask $ORG_UMASK
43
44 ## if pulseaudio dose not start ... kick pulseaudio
45 /bin/ps ax | /bin/grep pulseaudio | /bin/grep -v grep > /dev/null
46 if [ "$?" = "1" ] ; then
47         /usr/bin/pulseaudio --log-level=3 --log-target=file:/var/log/ico/pulse.log --system -D
48         sleep 0.5
49 fi
50
51 # 5 start sample wayland client for display cursor
52 sync;sync
53 /usr/bin/nice -19 /usr/bin/wayland-smoke &
54 sleep 0.3
55
56 # 6 start app core daemon
57 /bin/ps ax | /bin/grep launchpad_preloading_preinitializing_daemon | /bin/grep -v grep > /dev/null
58 if [ "$?" = "1" ] ; then
59         /usr/bin/launchpad_preloading_preinitializing_daemon &
60         sleep 1
61 fi
62
63 # 7 start homescreen
64 /usr/bin/launch_app org.tizen.ico.homescreen &
65