From: Mirko Vogt Date: Wed, 11 Feb 2009 21:23:47 +0000 (+0000) Subject: adding poc implementation for autostarting x11 applications X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=e79a368b06b2ce05a7fef667c852aeb6303f569e;p=openwrt%2Fsvn-archive%2Farchive.git adding poc implementation for autostarting x11 applications SVN-Revision: 14479 --- diff --git a/Xorg/xorg/xserver/xorg-server/files/x.init b/Xorg/xorg/xserver/xorg-server/files/x.init index 08dbf86932..6571696e51 100755 --- a/Xorg/xorg/xserver/xorg-server/files/x.init +++ b/Xorg/xorg/xserver/xorg-server/files/x.init @@ -31,6 +31,8 @@ desktop() { local cfg="$1" config_get autostart $cfg autostart [ -n "$autostart" ] && eval $autostart & + config_get fdo_compliance $cfg fdo_compliance + [ -n "`echo \"$fdo_compliance\" 2> /dev/null | grep autostart`" ] && exit # in case the environment provides its own functionality to do the autostart stuff exit here } start() { @@ -39,11 +41,16 @@ start() { config_foreach screen screen config_foreach graphic graphic config_foreach input input - X $ARGS & + Xorg $ARGS & + sleep 1 # give the xserver some time get initialized config_foreach desktop desktop - #test -d /etc/xdg/autostart || exit - #for elem in `ls /etc/xdg/autostart/`; do - # exec=`grep "^Exec=" "/etc/xdg/autostart/$elem"` - # eval ${exec#*=} & - #done + test -d /etc/xdg/autostart || exit + sleep 1 # give the first x11 application some time to get present - afterwars we'll start the x11 autostart applications + for elem in `ls /etc/xdg/autostart/`; do + if grep "^Hidden=true" "/etc/xdg/autostart/$elem" > /dev/null; then + continue + fi + exec=`grep "^Exec=" "/etc/xdg/autostart/$elem"` + eval ${exec#*=} & + done } diff --git a/Xorg/xserver/xglamo/files/x.init b/Xorg/xserver/xglamo/files/x.init index 555fc4941c..ddefa1254e 100755 --- a/Xorg/xserver/xglamo/files/x.init +++ b/Xorg/xserver/xglamo/files/x.init @@ -16,6 +16,8 @@ desktop() { local cfg="$1" config_get autostart $cfg autostart [ -n "$autostart" ] && eval $autostart & + config_get fdo_compliance $cfg fdo_compliance + [ -n "`echo \"$fdo_compliance\" 2> /dev/null | grep autostart`" ] && exit # in case the environment provides its own functionality to do the autostart stuff exit here } start() { @@ -23,10 +25,15 @@ start() { config_load x11 config_foreach screen screen TSLIB_TSDEVICE="/dev/event1" Xglamo $ARGS & + sleep 1 # give the xserver some time get initialized config_foreach desktop desktop - #test -d /etc/xdg/autostart || exit - #for elem in `ls /etc/xdg/autostart/`; do - # exec=`grep "^Exec=" "/etc/xdg/autostart/$elem"` - # eval ${exec#*=} & - #done + test -d /etc/xdg/autostart || exit + sleep 1 # give the first x11 application some time to get present - afterwars we'll start the x11 autostart applications + for elem in `ls /etc/xdg/autostart/`; do + if grep "^Hidden=true" "/etc/xdg/autostart/$elem" > /dev/null; then + continue + fi + exec=`grep "^Exec=" "/etc/xdg/autostart/$elem"` + eval ${exec#*=} & + done }