psa: remove old event feed items
[feedingit] / src / FeedingIt
index b6762e3..93abe74 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
@@ -9,10 +24,15 @@ status)
 dbus)
        cd /opt/FeedingIt
        #cp feedingit_status.desktop /usr/share/applications/hildon-status-menu/
-       nice python2.5 update_feeds.py
+       nice python2.5 update_feeds.py --daemon
+       ;;
+noqml)
+       start_gtk
+    ;;
+qml)
+       start_qml
        ;;
 *)
-    cd /opt/FeedingIt
-    python2.5 FeedingIt.py
+       start_gtk
     ;;
-esac
\ No newline at end of file
+esac