- #config_foreach start_with_x start
- X $ARGS &
- #eval $START # not used yet, because the buildroot lacks of the functionality of editing uci-values while building a package
- sleep 1 && DISPLAY=":0" WM & # workaround
+ Xorg $ARGS &
+ sleep 1 # give the xserver some time get initialized
+ config_foreach desktop desktop
+ 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