0.9 beta 3 - Added features to qml interface (dbus, edit mode...)
[feedingit] / src / FeedingIt
1 #!/bin/sh
2 case "$1" in
3 update)
4     dbus-send --print-reply --dest='org.marcoz.feedingit' --session /org/marcoz/feedingit/update org.marcoz.feedingit.UpdateAll
5     ;;
6 status)
7     dbus-send --print-reply --dest='org.maemo.feedingit' --session /org/maemo/feedingit org.maemo.feedingit.GetStatus
8     ;;
9 dbus)
10         cd /opt/FeedingIt
11         #cp feedingit_status.desktop /usr/share/applications/hildon-status-menu/
12         nice python2.5 update_feeds.py
13         ;;
14 noqml)
15     cd /opt/FeedingIt
16     python2.5 FeedingIt.py
17     ;;
18 *)
19     cd /opt/FeedingIt
20     python2.5 FeedingIt-Web.py 2>&1 >/dev/null &
21     pid=`pidof python2.5 FeedingIt-Web.py`
22     sleep 1
23     qmlviewer -opengl -fullscreen qml/FeedingIt.qml
24     kill $pid
25     ;;
26
27 esac