diff options
Diffstat (limited to 'meta/packages/matchbox-sato/matchbox-session-sato_0.1.bb')
| -rw-r--r-- | meta/packages/matchbox-sato/matchbox-session-sato_0.1.bb | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/meta/packages/matchbox-sato/matchbox-session-sato_0.1.bb b/meta/packages/matchbox-sato/matchbox-session-sato_0.1.bb new file mode 100644 index 0000000000..e1180ad301 --- /dev/null +++ b/meta/packages/matchbox-sato/matchbox-session-sato_0.1.bb | |||
| @@ -0,0 +1,33 @@ | |||
| 1 | DESCRIPTION = "Custom MB session files for poky" | ||
| 2 | LICENSE = "GPL" | ||
| 3 | SECTION = "x11" | ||
| 4 | RDEPENDS = "formfactor gtk-sato-engine matchbox-theme-sato gtk-theme-sato matchbox-panel-2 matchbox-desktop-sato initscripts matchbox-session" | ||
| 5 | PR = "r22" | ||
| 6 | |||
| 7 | SRC_URI = "file://session" | ||
| 8 | S = "${WORKDIR}" | ||
| 9 | |||
| 10 | do_install() { | ||
| 11 | install -d ${D}/${sysconfdir}/matchbox | ||
| 12 | install -m 0755 ${S}/session ${D}/${sysconfdir}/matchbox/ | ||
| 13 | } | ||
| 14 | |||
| 15 | pkg_postinst_matchbox-sato () { | ||
| 16 | #!/bin/sh -e | ||
| 17 | if [ "x$D" != "x" ]; then | ||
| 18 | exit 1 | ||
| 19 | fi | ||
| 20 | |||
| 21 | . ${sysconfdir}/init.d/functions | ||
| 22 | |||
| 23 | gconftool-2 --config-source=xml::$D${sysconfdir}/gconf/gconf.xml.defaults --direct --type string --set /desktop/poky/interface/theme Sato | ||
| 24 | gconftool-2 --config-source=xml::$D${sysconfdir}/gconf/gconf.xml.defaults --direct --type string --set /desktop/poky/interface/icon_theme Sato | ||
| 25 | gconftool-2 --config-source=xml::$D${sysconfdir}/gconf/gconf.xml.defaults --direct --type bool --set /desktop/poky/interface/touchscreen true | ||
| 26 | |||
| 27 | if [ "`cpuinfo_id`" = "GTA01" ] | ||
| 28 | then | ||
| 29 | gconftool-2 --config-source=xml::$D${sysconfdir}/gconf/gconf.xml.defaults --direct --type string --set /desktop/poky/interface/font_name "Sans 6" | ||
| 30 | else | ||
| 31 | gconftool-2 --config-source=xml::$D${sysconfdir}/gconf/gconf.xml.defaults --direct --type string --set /desktop/poky/interface/font_name "Sans 9" | ||
| 32 | fi | ||
| 33 | } | ||
