0.9beta
[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 qml)
15     cd /opt/FeedingIt
16     python2.5 FeedingIt-Web.py 2>&1 >/dev/null &
17     pid=`pidof python2.5 FeedingIt-Web.py`
18     qmlviewer -fullscreen qml/FeedingIt.qml
19     kill $pid
20     ;;
21 *)
22     cd /opt/FeedingIt
23     python2.5 FeedingIt.py
24     ;;
25 esac