xref: /OK3568_Linux_fs/yocto/poky/meta/recipes-sato/matchbox-sato/matchbox-session-sato/session (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun#!/bin/sh
2*4882a593Smuzhiyun
3*4882a593Smuzhiyun. /etc/formfactor/config
4*4882a593Smuzhiyun
5*4882a593Smuzhiyunif [ "$HAVE_TOUCHSCREEN" = "1" ]; then
6*4882a593Smuzhiyun    SHOWCURSOR="no"
7*4882a593Smuzhiyunelse
8*4882a593Smuzhiyun    SHOWCURSOR="yes"
9*4882a593Smuzhiyunfi
10*4882a593Smuzhiyun
11*4882a593Smuzhiyunif [ "$HAVE_KEYBOARD" = "1" ]; then
12*4882a593Smuzhiyun    KEYBOARD_APPLET=""
13*4882a593Smuzhiyunelse
14*4882a593Smuzhiyun    KEYBOARD_APPLET="keyboard"
15*4882a593Smuzhiyunfi
16*4882a593Smuzhiyun
17*4882a593Smuzhiyunmatchbox-desktop &
18*4882a593Smuzhiyun
19*4882a593Smuzhiyun# Lines containing feature-[foo] are removed at build time if the machine
20*4882a593Smuzhiyun# doesn't have the feature "foo".
21*4882a593Smuzhiyun
22*4882a593SmuzhiyunSTART_APPLETS=showdesktop,windowselector
23*4882a593SmuzhiyunEND_APPLETS=$KEYBOARD_APPLET,systray,startup-notify,notify
24*4882a593SmuzhiyunEND_APPLETS=battery,$END_APPLETS # feature-acpi
25*4882a593SmuzhiyunEND_APPLETS=battery,$END_APPLETS # feature-apm
26*4882a593SmuzhiyunEND_APPLETS=clock,$END_APPLETS
27*4882a593SmuzhiyunEND_APPLETS=openmoko-panel-gsm,$END_APPLETS # feature-phone
28*4882a593Smuzhiyun
29*4882a593Smuzhiyunmatchbox-panel --start-applets $START_APPLETS --end-applets $END_APPLETS &
30*4882a593Smuzhiyun
31*4882a593Smuzhiyunexec matchbox-window-manager -theme Sato -use_cursor $SHOWCURSOR $@
32