summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <hrw@openedhand.com>2008-04-09 10:31:51 +0000
committerMarcin Juszkiewicz <hrw@openedhand.com>2008-04-09 10:31:51 +0000
commitac82765a4b5cbab72ec5b8de4e1ae9354dc389c3 (patch)
treedb01d35a6ba8f0d5dd46edcb011f9178a8f50ba0
parenta42d7d3f663a20c4887481636eba0c84fd032e7a (diff)
downloadopenembedded-core-ac82765a4b5cbab72ec5b8de4e1ae9354dc389c3.tar.gz
openembedded-core-ac82765a4b5cbab72ec5b8de4e1ae9354dc389c3.tar.bz2
openembedded-core-ac82765a4b5cbab72ec5b8de4e1ae9354dc389c3.zip
matchbox-session: basic Matchbox session start script
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4215 311d38ba-8fff-0310-9ca6-ca027cbcb966
-rw-r--r--meta/packages/matchbox-session/matchbox-session/matchbox-session24
-rw-r--r--meta/packages/matchbox-session/matchbox-session_0.1.bb19
2 files changed, 43 insertions, 0 deletions
diff --git a/meta/packages/matchbox-session/matchbox-session/matchbox-session b/meta/packages/matchbox-session/matchbox-session/matchbox-session
new file mode 100644
index 0000000000..4d6caa0c5a
--- /dev/null
+++ b/meta/packages/matchbox-session/matchbox-session/matchbox-session
@@ -0,0 +1,24 @@
+#!/bin/sh
+#
+# Very simple session manager for matchbox tools
+#
+
+# Uncomment below to enable parsing of debian menu entrys
+# export MB_USE_DEB_MENUS=1
+
+if [ -e $HOME/.matchbox/session ]
+then
+exec $HOME/.matchbox/session
+fi
+
+if [ -e /etc/matchbox/session ]
+then
+exec /etc/matchbox/session
+fi
+
+# Default files to run if $HOME/.matchbox/session or /etc/matchbox/session
+# dont exist.
+
+matchbox-desktop &
+matchbox-panel &
+exec matchbox-window-manager $@
diff --git a/meta/packages/matchbox-session/matchbox-session_0.1.bb b/meta/packages/matchbox-session/matchbox-session_0.1.bb
new file mode 100644
index 0000000000..c9811f2416
--- /dev/null
+++ b/meta/packages/matchbox-session/matchbox-session_0.1.bb
@@ -0,0 +1,19 @@
+DESCRIPTION = "Custom MB session files for poky"
+LICENSE = "GPL"
+SECTION = "x11"
+RCONFLICTS = "matchbox-common"
+
+SRC_URI = "file://matchbox-session"
+S = "${WORKDIR}"
+
+inherit update-alternatives
+
+ALTERNATIVE_NAME = "x-session-manager"
+ALTERNATIVE_LINK = "${bindir}/x-session-manager"
+ALTERNATIVE_PATH = "${bindir}/matchbox-session"
+ALTERNATIVE_PRIORITY = "10"
+
+do_install() {
+ install -d ${D}/${bindir}
+ install -m 0755 ${S}/matchbox-session ${D}/${bindir}
+}