Skip to contentSkip to conversation

qtdemo-init: Make qtdemo startup correctly

PATCH New Yi Zhao 1 participant 1 message Sep 18, 2014

lore
Share & tools
lore

Yi Zhao

author
#0 lore raw

PATCH 1/1 qtdemo-init: Make qtdemo startup correctly

The qtdemo can't launch via qtdemo-init initscript. Fix it.

---
 meta/recipes-qt/qt-demo/qt-demo-init/qtdemo-init |   10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
meta/recipes-qt/qt-demo/qt-demo-init/qtdemo-init +5 -5
index 3a1f2cb..21f0273 100644
@@ -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
Signature · 1 line
1.7.9.5