blob: 42ce483d35e3989a890e2dc20cc6431b1cad9d6a [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001#!/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
17# Tell GTK+3 we really want server side decorations, even with
18# GtkHeaderBar using applications: Without that mb-panel will render
19# on top of the client side decorations.
20export GTK_CSD=0
21
22matchbox-desktop &
23
24# Lines containing feature-[foo] are removed at build time if the machine
25# doesn't have the feature "foo".
26
27START_APPLETS=showdesktop,windowselector
28END_APPLETS=clock,battery,$KEYBOARD_APPLET,systray,startup-notify,notify
29END_APPLETS=openmoko-panel-gsm,$END_APPLETS # feature-phone
30
31matchbox-panel --titlebar --start-applets $START_APPLETS --end-applets $END_APPLETS &
32
33exec matchbox-window-manager -theme Sato -use_desktop_mode decorated -use_cursor $SHOWCURSOR $@