summaryrefslogtreecommitdiffstats
path: root/meta/packages/matchbox-sato/matchbox-session-sato_0.1.bb
diff options
context:
space:
mode:
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.bb33
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 @@
1DESCRIPTION = "Custom MB session files for poky"
2LICENSE = "GPL"
3SECTION = "x11"
4RDEPENDS = "formfactor gtk-sato-engine matchbox-theme-sato gtk-theme-sato matchbox-panel-2 matchbox-desktop-sato initscripts matchbox-session"
5PR = "r22"
6
7SRC_URI = "file://session"
8S = "${WORKDIR}"
9
10do_install() {
11 install -d ${D}/${sysconfdir}/matchbox
12 install -m 0755 ${S}/session ${D}/${sysconfdir}/matchbox/
13}
14
15pkg_postinst_matchbox-sato () {
16#!/bin/sh -e
17if [ "x$D" != "x" ]; then
18 exit 1
19fi
20
21. ${sysconfdir}/init.d/functions
22
23gconftool-2 --config-source=xml::$D${sysconfdir}/gconf/gconf.xml.defaults --direct --type string --set /desktop/poky/interface/theme Sato
24gconftool-2 --config-source=xml::$D${sysconfdir}/gconf/gconf.xml.defaults --direct --type string --set /desktop/poky/interface/icon_theme Sato
25gconftool-2 --config-source=xml::$D${sysconfdir}/gconf/gconf.xml.defaults --direct --type bool --set /desktop/poky/interface/touchscreen true
26
27if [ "`cpuinfo_id`" = "GTA01" ]
28then
29 gconftool-2 --config-source=xml::$D${sysconfdir}/gconf/gconf.xml.defaults --direct --type string --set /desktop/poky/interface/font_name "Sans 6"
30else
31 gconftool-2 --config-source=xml::$D${sysconfdir}/gconf/gconf.xml.defaults --direct --type string --set /desktop/poky/interface/font_name "Sans 9"
32fi
33}