Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | |
| 3 | . /etc/formfactor/config |
| 4 | |
| 5 | if [ "$HAVE_TOUCHSCREEN" = "1" ]; then |
| 6 | SHOWCURSOR="no" |
| 7 | else |
| 8 | SHOWCURSOR="yes" |
| 9 | fi |
| 10 | |
| 11 | if [ "$HAVE_KEYBOARD" = "1" ]; then |
| 12 | KEYBOARD_APPLET="" |
| 13 | else |
| 14 | KEYBOARD_APPLET="keyboard" |
| 15 | fi |
| 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. |
| 20 | export GTK_CSD=0 |
| 21 | |
| 22 | matchbox-desktop & |
| 23 | |
| 24 | # Lines containing feature-[foo] are removed at build time if the machine |
| 25 | # doesn't have the feature "foo". |
| 26 | |
| 27 | START_APPLETS=showdesktop,windowselector |
| 28 | END_APPLETS=clock,battery,$KEYBOARD_APPLET,systray,startup-notify,notify |
| 29 | END_APPLETS=openmoko-panel-gsm,$END_APPLETS # feature-phone |
| 30 | |
| 31 | matchbox-panel --titlebar --start-applets $START_APPLETS --end-applets $END_APPLETS & |
| 32 | |
| 33 | exec matchbox-window-manager -theme Sato -use_desktop_mode decorated -use_cursor $SHOWCURSOR $@ |