psa: remove old event feed items
[feedingit] / src / FeedingIt
1 #!/bin/sh
2
3 start_qml() {
4     cd /opt/FeedingIt
5     python2.5 FeedingIt-Web.py 2>&1 >/dev/null &
6     pid=`pidof python2.5 FeedingIt-Web.py`
7     sleep 1
8     qmlviewer -opengl -fullscreen qml/FeedingIt.qml
9     kill $pid
10 }
11 start_gtk() {
12         cd /opt/FeedingIt
13     python2.5 FeedingIt.py
14 }
15
16
17 case "$1" in
18 update)
19     dbus-send --print-reply --dest='org.marcoz.feedingit' --session /org/marcoz/feedingit/update org.marcoz.feedingit.UpdateAll
20     ;;
21 status)
22     dbus-send --print-reply --dest='org.maemo.feedingit' --session /org/maemo/feedingit org.maemo.feedingit.GetStatus
23     ;;
24 dbus)
25         cd /opt/FeedingIt
26         #cp feedingit_status.desktop /usr/share/applications/hildon-status-menu/
27         nice python2.5 update_feeds.py --daemon
28         ;;
29 noqml)
30         start_gtk
31     ;;
32 qml)
33         start_qml
34         ;;
35 *)
36         start_gtk
37     ;;
38 esac