diff options
Diffstat (limited to 'meta/recipes-graphics/mini-x-session')
-rw-r--r-- | meta/recipes-graphics/mini-x-session/files/mini-x-session | 32 | ||||
-rw-r--r-- | meta/recipes-graphics/mini-x-session/mini-x-session_0.1.bb | 24 |
2 files changed, 56 insertions, 0 deletions
diff --git a/meta/recipes-graphics/mini-x-session/files/mini-x-session b/meta/recipes-graphics/mini-x-session/files/mini-x-session new file mode 100644 index 0000000000..1940e27872 --- /dev/null +++ b/meta/recipes-graphics/mini-x-session/files/mini-x-session | |||
@@ -0,0 +1,32 @@ | |||
1 | #!/bin/sh | ||
2 | # | ||
3 | # Very simple session manager for Mini X | ||
4 | # | ||
5 | |||
6 | # Uncomment below to enable parsing of debian menu entrys | ||
7 | # export MB_USE_DEB_MENUS=1 | ||
8 | |||
9 | if [ -e $HOME/.mini_x/session ] | ||
10 | then | ||
11 | exec $HOME/.mini_x/session | ||
12 | fi | ||
13 | |||
14 | if [ -e /etc/mini_x/session ] | ||
15 | then | ||
16 | exec /etc/mini_x/session | ||
17 | fi | ||
18 | |||
19 | MINI_X_SESSION_DIR=/etc/mini_x/session.d | ||
20 | |||
21 | # Execute session file on behalf of file owner | ||
22 | for SESSIONFILE in $MINI_X_SESSION_DIR/*; do | ||
23 | set +e | ||
24 | USERNAME=`stat -c %U $SESSIONFILE` | ||
25 | sudo -b -i -u $USERNAME $SESSIONFILE& | ||
26 | set -e | ||
27 | done | ||
28 | # Default files to run if $HOME/.mini_x/session or /etc/mini_x/session | ||
29 | # dont exist. | ||
30 | |||
31 | matchbox-terminal& | ||
32 | exec matchbox-window-manager | ||
diff --git a/meta/recipes-graphics/mini-x-session/mini-x-session_0.1.bb b/meta/recipes-graphics/mini-x-session/mini-x-session_0.1.bb new file mode 100644 index 0000000000..3818d16a3d --- /dev/null +++ b/meta/recipes-graphics/mini-x-session/mini-x-session_0.1.bb | |||
@@ -0,0 +1,24 @@ | |||
1 | DESCRIPTION = "Mini X session files for poky" | ||
2 | HOMEPAGE = "http://www.yoctoproject.org" | ||
3 | BUGTRACKER = "http://bugzilla.pokylinux.org" | ||
4 | |||
5 | LICENSE = "GPLv2" | ||
6 | LIC_FILES_CHKSUM = "file://mini-x-session;endline=5;md5=b6430bffbcf05f9760e72938826b7487" | ||
7 | |||
8 | SECTION = "x11" | ||
9 | RCONFLICTS = "matchbox-common" | ||
10 | |||
11 | SRC_URI = "file://mini-x-session" | ||
12 | S = "${WORKDIR}" | ||
13 | |||
14 | inherit update-alternatives | ||
15 | |||
16 | ALTERNATIVE_NAME = "x-session-manager" | ||
17 | ALTERNATIVE_LINK = "${bindir}/x-session-manager" | ||
18 | ALTERNATIVE_PATH = "${bindir}/mini-x-session" | ||
19 | ALTERNATIVE_PRIORITY = "10" | ||
20 | |||
21 | do_install() { | ||
22 | install -d ${D}/${bindir} | ||
23 | install -m 0755 ${S}/mini-x-session ${D}/${bindir} | ||
24 | } | ||