[oe-commits] Koen Kooi : xserver-common: add xdg-autostart support (from poky)

GIT User account git at amethyst.openembedded.net
Mon May 18 09:50:30 UTC 2009


Module: openembedded.git
Branch: org.openembedded.dev
Commit: 4fb5e283e611b87c4d55079c12a1a4ca1c5624a7
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=4fb5e283e611b87c4d55079c12a1a4ca1c5624a7

Author: Koen Kooi <koen at openembedded.org>
Date:   Mon May 18 10:24:05 2009 +0200

xserver-common: add xdg-autostart support (from poky)

---

 recipes/xserver-common/files/89xdgautostart.sh |    7 +++++++
 recipes/xserver-common/xserver-common_1.24.bb  |    7 +++++--
 2 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/recipes/xserver-common/files/89xdgautostart.sh b/recipes/xserver-common/files/89xdgautostart.sh
new file mode 100644
index 0000000..db7aa22
--- /dev/null
+++ b/recipes/xserver-common/files/89xdgautostart.sh
@@ -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
diff --git a/recipes/xserver-common/xserver-common_1.24.bb b/recipes/xserver-common/xserver-common_1.24.bb
index a30a37c..27b4ba6 100644
--- a/recipes/xserver-common/xserver-common_1.24.bb
+++ b/recipes/xserver-common/xserver-common_1.24.bb
@@ -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"
 }





More information about the Openembedded-commits mailing list