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=$KEYBOARD_APPLET,systray,startup-notify,notify 24END_APPLETS=battery,$END_APPLETS # feature-acpi 25END_APPLETS=battery,$END_APPLETS # feature-apm 26END_APPLETS=clock,$END_APPLETS 27END_APPLETS=openmoko-panel-gsm,$END_APPLETS # feature-phone 28 29matchbox-panel --start-applets $START_APPLETS --end-applets $END_APPLETS & 30 31exec matchbox-window-manager -theme Sato -use_cursor $SHOWCURSOR $@ 32