xserver-common: add xdg-autostart support (from poky)
authorKoen Kooi <koen@openembedded.org>
Mon, 18 May 2009 08:24:05 +0000 (10:24 +0200)
committerKoen Kooi <koen@openembedded.org>
Mon, 18 May 2009 08:24:05 +0000 (10:24 +0200)
recipes/xserver-common/files/89xdgautostart.sh [new file with mode: 0644]
recipes/xserver-common/xserver-common_1.24.bb

diff --git a/recipes/xserver-common/files/89xdgautostart.sh b/recipes/xserver-common/files/89xdgautostart.sh
new file mode 100644 (file)
index 0000000..db7aa22
--- /dev/null
@@ -0,0 +1,7 @@
+XDGAUTOSTART=/etc/xdg/autostart
+if [ -d $XDGAUTOSTART ]; then
+    for SCRIPT in $XDGAUTOSTART/*; do
+        CMD=`grep ^Exec= $SCRIPT | cut -d '=' -f 2`
+        $CMD &
+    done
+fi
\ No newline at end of file
index a30a37c..27b4ba6 100644 (file)
@@ -2,15 +2,18 @@ DESCRIPTION = "Common X11 scripts and support files"
 LICENSE = "GPL"
 SECTION = "x11"
 RDEPENDS_${PN} = "xmodmap xrandr xdpyinfo"
-PR = "r0"
+PR = "r1"
 
 PACKAGE_ARCH = "all"
 
 # we are using a gpe-style Makefile
 inherit gpe
 
-SRC_URI_append = " file://setDPI.sh "
+SRC_URI_append = " file://setDPI.sh \
+                   file://89xdgautostart.sh \
+"
 
 do_install_append() {
        install -m 0755 "${WORKDIR}/setDPI.sh" "${D}/etc/X11/Xinit.d/50setdpi"
+       install -m 0755 "${WORKDIR}/89xdgautostart.sh" "${D}/etc/X11/Xinit.d/89xdgautostart.sh"
 }