1 DESCRIPTION = "Custom Matchbox session files for OpenMoko"
4 RDEPENDS = "matchbox-applet-startup-monitor matchbox-panel-2"
5 RDEPENDS += "openmoko-common2 openmoko-today2 openmoko-dialer2"
6 RCONFLICTS_${PN} = "openmoko-session matchbox-common"
11 file://matchbox-session \
15 inherit update-alternatives
17 ALTERNATIVE_NAME = "x-window-manager"
18 ALTERNATIVE_LINK = "${bindir}/x-window-manager"
19 ALTERNATIVE_PATH = "${bindir}/matchbox-session"
20 ALTERNATIVE_PRIORITY = "11"
23 install -d ${D}${bindir}
24 install -m 0655 ${WORKDIR}/matchbox-session ${D}${bindir}
25 install -d ${D}${sysconfdir}
26 cp -R ${S}/etc/* ${D}${sysconfdir}
27 rm -fR ${D}${sysconfdir}/.svn
28 rm -fR ${D}${sysconfdir}/matchbox/.svn
29 chmod -R 755 ${D}${sysconfdir}/
32 pkg_postinst_openmoko-session2 () {
34 if [ "x$D" != "x" ]; then
38 gconftool-2 --config-source=xml::$D${sysconfdir}/gconf/gconf.xml.defaults --direct --type string --set /desktop/poky/interface/theme openmoko-standard-2
39 gconftool-2 --config-source=xml::$D${sysconfdir}/gconf/gconf.xml.defaults --direct --type string --set /desktop/poky/interface/icon_theme openmoko-standard
40 gconftool-2 --config-source=xml::$D${sysconfdir}/gconf/gconf.xml.defaults --direct --type string --set /desktop/poky/interface/font_name "Sans 5"
41 gconftool-2 --config-source=xml::$D${sysconfdir}/gconf/gconf.xml.defaults --direct --type string --set /desktop/poky/interface/wallpaper ${datadir}/pixmaps/wallpaper.png
42 gconftool-2 --config-source=xml::$D${sysconfdir}/gconf/gconf.xml.defaults --direct --type bool --set /desktop/poky/interface/digital_clock 1
43 gconftool-2 --config-source=xml::$D${sysconfdir}/gconf/gconf.xml.defaults --direct --type int --set /desktop/poky/peripherals/mouse/drag_threshold 8
44 gconftool-2 --config-source=xml::$D${sysconfdir}/gconf/gconf.xml.defaults --direct --type int --set /desktop/openmoko/neod/power_management 2
45 # gstreamer audio settings
46 gconftool-2 --config-source=xml::$D${sysconfdir}/gconf/gconf.xml.defaults --direct -t string --set /system/gstreamer/0.10/default/audiosink pulsesink
47 gconftool-2 --config-source=xml::$D${sysconfdir}/gconf/gconf.xml.defaults --direct -t string --set /system/gstreamer/0.10/default/audiosrc pulsesrc
53 CONFFILES_${PN} = "${sysconfdir}/matchbox/session"