Import woodchuck from wc.
[feedingit] / src / FeedingIt
index b6762e3..ea85e33 100644 (file)
@@ -1,4 +1,19 @@
 #!/bin/sh
+
+start_qml() {
+    cd /opt/FeedingIt
+    python2.5 FeedingIt-Web.py 2>&1 >/dev/null &
+    pid=`pidof python2.5 FeedingIt-Web.py`
+    sleep 1
+    qmlviewer -opengl -fullscreen qml/FeedingIt.qml
+    kill $pid
+}
+start_gtk() {
+       cd /opt/FeedingIt
+    python2.5 FeedingIt.py
+}
+
+
 case "$1" in
 update)
     dbus-send --print-reply --dest='org.marcoz.feedingit' --session /org/marcoz/feedingit/update org.marcoz.feedingit.UpdateAll
@@ -11,8 +26,13 @@ dbus)
        #cp feedingit_status.desktop /usr/share/applications/hildon-status-menu/
        nice python2.5 update_feeds.py
        ;;
+noqml)
+       start_gtk
+    ;;
+qml)
+       start_qml
+       ;;
 *)
-    cd /opt/FeedingIt
-    python2.5 FeedingIt.py
+       start_gtk
     ;;
-esac
\ No newline at end of file
+esac