]> code.ossystems Code Review - openembedded-core.git/commitdiff
qtdemo-init: Make qtdemo startup correctly
authorYi Zhao <yi.zhao@windriver.com>
Thu, 18 Sep 2014 09:05:47 +0000 (17:05 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 29 Sep 2014 11:11:48 +0000 (12:11 +0100)
The qtdemo can't launch via qtdemo-init initscript. Fix it.

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-qt/qt-demo/qt-demo-init/qtdemo-init

index 3a1f2cb1b2ecb279626fe1728b797f19e3565137..21f0273e2ac1f5a5871164845343bf42692a6d9d 100644 (file)
@@ -2,8 +2,8 @@
 
 set -e
 
-if [ -f /usr/bin/qtdemo ]; then
-       QTDEMO="qtdemo > /var/log/Xsession.log 2> &1"
+if [ -x /usr/bin/qtdemo ]; then
+       QTDEMO="qtdemo"
 else
        QTDEMO="qtdemoE -qws"
 fi
@@ -18,7 +18,7 @@ case "$1" in
                if [ ! -f /etc/pointercal ]; then
                        /usr/bin/ts_calibrate
                fi
-               if [ "$QTDEMO" = qtdemo ]; then
+               if [ "$QTDEMO" = "qtdemo" ]; then
                        Xorg &
                        export DISPLAY=:0
                        $QTDEMO &
@@ -26,7 +26,7 @@ case "$1" in
                        QWS_MOUSE_PROTO=tslib:$TSLIB_TSDEVICE $QTDEMO &
                fi
        else
-               if [ "$QTDEMO" = qtdemo ]; then
+               if [ "$QTDEMO" = "qtdemo" ]; then
                        Xorg &
                        export DISPLAY=:0
                fi
@@ -35,7 +35,7 @@ case "$1" in
        ;;
   stop)
        echo "Stopping qtdemo"
-       if [ "$QTDEMO" = qtdemo ]; then
+       if [ "$QTDEMO" = "qtdemo" ]; then
                killall Xorg
                killall qtdemo
        else