summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packages/openmoko2/openmoko-session2.bb9
1 files changed, 8 insertions, 1 deletions
diff --git a/packages/openmoko2/openmoko-session2.bb b/packages/openmoko2/openmoko-session2.bb
index 66ce5da82a..a8768534b1 100644
--- a/packages/openmoko2/openmoko-session2.bb
+++ b/packages/openmoko2/openmoko-session2.bb
@@ -4,7 +4,7 @@ SECTION = "x11"
RDEPENDS = "matchbox-applet-startup-monitor matchbox-panel-2"
RDEPENDS += "openmoko-common2 openmoko-today2 openmoko-dialer2"
RCONFLICTS_${PN} = "openmoko-session matchbox-common"
-PR = "r61"
+PR = "r62"
SRC_URI = "\
file://etc \
@@ -12,6 +12,13 @@ SRC_URI = "\
"
S = ${WORKDIR}
+inherit update-alternatives
+
+ALTERNATIVE_NAME = "x-window-manager"
+ALTERNATIVE_LINK = "${bindir}/x-window-manager"
+ALTERNATIVE_PATH = "${bindir}/matchbox-session"
+ALTERNATIVE_PRIORITY = "11"
+
do_install() {
install -d ${D}${bindir}
install -m 0655 ${WORKDIR}/matchbox-session ${D}${bindir}