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-graphics/mini-x-session | |
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-graphics/mini-x-session')
-rw-r--r-- | meta/recipes-graphics/mini-x-session/files/mini-x-session | 39 | ||||
-rw-r--r-- | meta/recipes-graphics/mini-x-session/mini-x-session_0.1.bb | 27 |
2 files changed, 66 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..dca655a913 --- /dev/null +++ b/meta/recipes-graphics/mini-x-session/files/mini-x-session | |||
@@ -0,0 +1,39 @@ | |||
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 | if [ -d "$MINI_X_SESSION_DIR" ]; then | ||
21 | # Execute session file on behalf of file owner | ||
22 | find $MINI_X_SESSION_DIR -type f | while read SESSIONFILE; do | ||
23 | set +e | ||
24 | USERNAME=`stat -c %U $SESSIONFILE` | ||
25 | # Using su rather than sudo as latest 1.8.1 cause failure [YOCTO #1211] | ||
26 | # su -l -c '$SESSIONFILE&' $USERNAME | ||
27 | sudo -b -i -u $USERNAME $SESSIONFILE& | ||
28 | set -e | ||
29 | done | ||
30 | fi | ||
31 | |||
32 | # This resolution is big enough for hob2's max window size. | ||
33 | xrandr -s 1024x768 | ||
34 | |||
35 | # Default files to run if $HOME/.mini_x/session or /etc/mini_x/session | ||
36 | # dont exist. | ||
37 | |||
38 | matchbox-terminal& | ||
39 | 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..4e89d631c3 --- /dev/null +++ b/meta/recipes-graphics/mini-x-session/mini-x-session_0.1.bb | |||
@@ -0,0 +1,27 @@ | |||
1 | SUMMARY = "Very simple session manager for X" | ||
2 | HOMEPAGE = "http://www.yoctoproject.org" | ||
3 | BUGTRACKER = "http://bugzilla.pokylinux.org" | ||
4 | |||
5 | PR = "r4" | ||
6 | |||
7 | LICENSE = "GPLv2" | ||
8 | LIC_FILES_CHKSUM = "file://mini-x-session;endline=5;md5=b6430bffbcf05f9760e72938826b7487" | ||
9 | |||
10 | SECTION = "x11" | ||
11 | RCONFLICTS_${PN} = "matchbox-common" | ||
12 | |||
13 | SRC_URI = "file://mini-x-session" | ||
14 | S = "${WORKDIR}" | ||
15 | |||
16 | RDEPENDS_${PN} = "sudo" | ||
17 | |||
18 | inherit update-alternatives | ||
19 | |||
20 | ALTERNATIVE_${PN} = "x-session-manager" | ||
21 | ALTERNATIVE_TARGET[x-session-manager] = "${bindir}/mini-x-session" | ||
22 | ALTERNATIVE_PRIORITY = "50" | ||
23 | |||
24 | do_install() { | ||
25 | install -d ${D}/${bindir} | ||
26 | install -m 0755 ${S}/mini-x-session ${D}/${bindir} | ||
27 | } | ||