From: Koen Kooi Date: Mon, 18 May 2009 08:24:05 +0000 (+0200) Subject: xserver-common: add xdg-autostart support (from poky) X-Git-Tag: Release-2010-05/1~3525 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4fb5e283e611b87c4d55079c12a1a4ca1c5624a7;p=openembedded.git xserver-common: add xdg-autostart support (from poky) --- diff --git a/recipes/xserver-common/files/89xdgautostart.sh b/recipes/xserver-common/files/89xdgautostart.sh new file mode 100644 index 0000000000..db7aa229d2 --- /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 a30a37c893..27b4ba6a70 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" }