diff options
author | Tudor Florea <tudor.florea@enea.com> | 2015-10-09 22:59:03 +0200 |
---|---|---|
committer | Tudor Florea <tudor.florea@enea.com> | 2015-10-09 22:59:03 +0200 |
commit | 972dcfcdbfe75dcfeb777150c136576cf1a71e99 (patch) | |
tree | 97a61cd7e293d7ae9d56ef7ed0f81253365bb026 /meta/recipes-sato/matchbox-sato | |
download | poky-972dcfcdbfe75dcfeb777150c136576cf1a71e99.tar.gz |
initial commit for Enea Linux 5.0 arm
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta/recipes-sato/matchbox-sato')
-rw-r--r-- | meta/recipes-sato/matchbox-sato/matchbox-session-sato/session | 29 | ||||
-rw-r--r-- | meta/recipes-sato/matchbox-sato/matchbox-session-sato_0.1.bb | 46 |
2 files changed, 75 insertions, 0 deletions
diff --git a/meta/recipes-sato/matchbox-sato/matchbox-session-sato/session b/meta/recipes-sato/matchbox-sato/matchbox-session-sato/session new file mode 100644 index 0000000000..a3138b6961 --- /dev/null +++ b/meta/recipes-sato/matchbox-sato/matchbox-session-sato/session | |||
@@ -0,0 +1,29 @@ | |||
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 | |||
18 | matchbox-desktop & | ||
19 | |||
20 | # Lines containing feature-[foo] are removed at build time if the machine | ||
21 | # doesn't have the feature "foo". | ||
22 | |||
23 | START_APPLETS=showdesktop,windowselector | ||
24 | END_APPLETS=clock,battery,$KEYBOARD_APPLET,systray,startup-notify,notify | ||
25 | END_APPLETS=openmoko-panel-gsm,$END_APPLETS # feature-phone | ||
26 | |||
27 | matchbox-panel --titlebar --start-applets $START_APPLETS --end-applets $END_APPLETS & | ||
28 | |||
29 | exec matchbox-window-manager -theme Sato -use_desktop_mode decorated -use_cursor $SHOWCURSOR $@ | ||
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 new file mode 100644 index 0000000000..fe84a0fc99 --- /dev/null +++ b/meta/recipes-sato/matchbox-sato/matchbox-session-sato_0.1.bb | |||
@@ -0,0 +1,46 @@ | |||
1 | SUMMARY = "Custom Matchbox session files for the Sato environment" | ||
2 | HOMEPAGE = "http://www.matchbox-project.org/" | ||
3 | BUGTRACKER = "http://bugzilla.yoctoproject.org/" | ||
4 | |||
5 | LICENSE = "GPLv2.0+" | ||
6 | LIC_FILES_CHKSUM = "file://session;endline=3;md5=f8a5c5b9c279e52dc094d10e11c2be63" | ||
7 | |||
8 | SECTION = "x11" | ||
9 | DEPENDS = "gconf-native" | ||
10 | RDEPENDS_${PN} = "formfactor gtk-sato-engine matchbox-theme-sato gtk-theme-sato matchbox-panel-2 matchbox-desktop-sato matchbox-session gconf" | ||
11 | PR = "r30" | ||
12 | |||
13 | # This package is architecture specific because the session script is modified | ||
14 | # based on the machine architecture. | ||
15 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
16 | |||
17 | SRC_URI = "file://session" | ||
18 | S = "${WORKDIR}" | ||
19 | |||
20 | do_install() { | ||
21 | # This is the set of machine features that the script has markers for | ||
22 | FEATURES="phone" | ||
23 | SCRIPT="${S}/sedder" | ||
24 | rm -f $SCRIPT | ||
25 | touch $SCRIPT | ||
26 | for FEAT in $FEATURES; do | ||
27 | if echo ${MACHINE_FEATURES} | awk "/$FEAT/ {exit 1}"; then | ||
28 | echo "/feature-$FEAT/d" >> $SCRIPT | ||
29 | fi | ||
30 | done | ||
31 | |||
32 | install -d ${D}/${sysconfdir}/matchbox | ||
33 | sed -f "$SCRIPT" ${S}/session > ${D}/${sysconfdir}/matchbox/session | ||
34 | chmod +x ${D}/${sysconfdir}/matchbox/session | ||
35 | } | ||
36 | |||
37 | pkg_postinst_${PN} () { | ||
38 | set_value() { | ||
39 | #type, name, value | ||
40 | gconftool-2 --config-source=xml::$D${sysconfdir}/gconf/gconf.xml.defaults --direct --type $1 --set /desktop/poky/interface/$2 "$3" | ||
41 | } | ||
42 | set_value string theme Sato | ||
43 | set_value string icon_theme Sato | ||
44 | set_value bool touchscreen true | ||
45 | set_value string font_name "Sans 9" | ||
46 | } | ||