summaryrefslogtreecommitdiffstats
path: root/meta/recipes-sato
diff options
context:
space:
mode:
authorLaurentiu Palcu <laurentiu.palcu@intel.com>2012-12-18 14:06:52 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-12-19 17:55:02 +0000
commitccc394e7c6d3405b87fe862e50485f548b735da3 (patch)
treed37a9da05c5464beb33917856bbbafa3f059f0b6 /meta/recipes-sato
parentbb0a66cc7ec9adaf7c9d175656bca2976e41f7e5 (diff)
downloadpoky-ccc394e7c6d3405b87fe862e50485f548b735da3.tar.gz
matchbox-session-sato: use a proper schema file
Also, inheriting gconf.bbclass will allow for the schema registration to be done at do_rootfs time. [YOCTO #3603] (From OE-Core rev: a19592b684d482a7c011495f1c761f38c316319a) Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-sato')
-rw-r--r--meta/recipes-sato/matchbox-sato/matchbox-session-sato/matchbox-session-sato.schemas53
-rw-r--r--meta/recipes-sato/matchbox-sato/matchbox-session-sato_0.1.bb21
2 files changed, 60 insertions, 14 deletions
diff --git a/meta/recipes-sato/matchbox-sato/matchbox-session-sato/matchbox-session-sato.schemas b/meta/recipes-sato/matchbox-sato/matchbox-session-sato/matchbox-session-sato.schemas
new file mode 100644
index 0000000000..f5b770b62f
--- /dev/null
+++ b/meta/recipes-sato/matchbox-sato/matchbox-session-sato/matchbox-session-sato.schemas
@@ -0,0 +1,53 @@
1<?xml version="1.0"?>
2<gconfschemafile>
3<schemalist>
4
5 <schema>
6 <key>/schemas/desktop/poky/interface/theme</key>
7 <applyto>/desktop/poky/interface/theme</applyto>
8 <type>string</type>
9 <owner>matchbox-session-sato</owner>
10 <default>Sato</default>
11 <locale name="C">
12 <short>Desktop theme</short>
13 <long>The theme name for Matchbox and Sato to use.</long>
14 </locale>
15 </schema>
16
17 <schema>
18 <key>/schemas/desktop/poky/interface/icon_theme</key>
19 <applyto>/desktop/poky/interface/icon_theme</applyto>
20 <type>string</type>
21 <owner>matchbox-session-sato</owner>
22 <default>Sato</default>
23 <locale name="C">
24 <short>Desktop icon theme</short>
25 <long>The icon theme name for Matchbox and Sato.</long>
26 </locale>
27 </schema>
28
29 <schema>
30 <key>/schemas/desktop/poky/interface/touchscreen</key>
31 <applyto>/desktop/poky/interface/touchscreen</applyto>
32 <type>bool</type>
33 <owner>matchbox-session-sato</owner>
34 <default>true</default>
35 <locale name="C">
36 <short>Activate touchscreen</short>
37 </locale>
38 </schema>
39
40 <schema>
41 <key>/schemas/desktop/poky/interface/font_name</key>
42 <applyto>/desktop/poky/interface/font_name</applyto>
43 <type>string</type>
44 <owner>matchbox-session-sato</owner>
45 <default>Sans 9</default>
46 <locale name="C">
47 <short>Font name</short>
48 </locale>
49 </schema>
50
51</schemalist>
52</gconfschemafile>
53
diff --git a/meta/recipes-sato/matchbox-sato/matchbox-session-sato_0.1.bb b/meta/recipes-sato/matchbox-sato/matchbox-session-sato_0.1.bb
index 10fd5b42c5..2d34754281 100644
--- a/meta/recipes-sato/matchbox-sato/matchbox-session-sato_0.1.bb
+++ b/meta/recipes-sato/matchbox-sato/matchbox-session-sato_0.1.bb
@@ -16,7 +16,9 @@ PR = "r29"
16# based on the machine architecture. 16# based on the machine architecture.
17PACKAGE_ARCH = "${MACHINE_ARCH}" 17PACKAGE_ARCH = "${MACHINE_ARCH}"
18 18
19SRC_URI = "file://session" 19SRC_URI = "file://session \
20 file://matchbox-session-sato.schemas \
21 "
20S = "${WORKDIR}" 22S = "${WORKDIR}"
21 23
22do_install() { 24do_install() {
@@ -34,18 +36,9 @@ do_install() {
34 install -d ${D}/${sysconfdir}/matchbox 36 install -d ${D}/${sysconfdir}/matchbox
35 sed -f "$SCRIPT" ${S}/session > ${D}/${sysconfdir}/matchbox/session 37 sed -f "$SCRIPT" ${S}/session > ${D}/${sysconfdir}/matchbox/session
36 chmod +x ${D}/${sysconfdir}/matchbox/session 38 chmod +x ${D}/${sysconfdir}/matchbox/session
37}
38
39pkg_postinst_${PN} () {
40#!/bin/sh -e
41if [ "x$D" != "x" ]; then
42 exit 1
43fi
44 39
45. ${sysconfdir}/init.d/functions 40 install -d ${D}/${sysconfdir}/gconf/schemas
46 41 install -m 664 ${S}/matchbox-session-sato.schemas ${D}/${sysconfdir}/gconf/schemas
47gconftool-2 --config-source=xml::$D${sysconfdir}/gconf/gconf.xml.defaults --direct --type string --set /desktop/poky/interface/theme Sato
48gconftool-2 --config-source=xml::$D${sysconfdir}/gconf/gconf.xml.defaults --direct --type string --set /desktop/poky/interface/icon_theme Sato
49gconftool-2 --config-source=xml::$D${sysconfdir}/gconf/gconf.xml.defaults --direct --type bool --set /desktop/poky/interface/touchscreen true
50gconftool-2 --config-source=xml::$D${sysconfdir}/gconf/gconf.xml.defaults --direct --type string --set /desktop/poky/interface/font_name "Sans 9"
51} 42}
43
44inherit gconf