1#!/bin/sh
2
3. /etc/formfactor/config
4
5if [ "$HAVE_TOUCHSCREEN" = "1" ]; then
6    SHOWCURSOR="no"
7else
8    SHOWCURSOR="yes"
9fi
10
11if [ "$HAVE_KEYBOARD" = "1" ]; then
12    KEYBOARD_APPLET=""
13else
14    KEYBOARD_APPLET="keyboard"
15fi
16
17matchbox-desktop &
18
19# Lines containing feature-[foo] are removed at build time if the machine
20# doesn't have the feature "foo".
21
22START_APPLETS=showdesktop,windowselector
23END_APPLETS=clock,battery,$KEYBOARD_APPLET,systray,startup-notify,notify
24END_APPLETS=openmoko-panel-gsm,$END_APPLETS # feature-phone
25
26matchbox-panel --start-applets $START_APPLETS --end-applets $END_APPLETS &
27
28exec matchbox-window-manager -theme Sato -use_cursor $SHOWCURSOR $@
29