forked from PDXostc/fm_radio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
InstallWgts.sh
15 lines (15 loc) · 931 Bytes
/
InstallWgts.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#the line below is required for the script to work with ssh
export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/5000/dbus/user_bus_socket"
#These lines remove installed wigits before installing the new ones.
#installing wigits over existing will case problems.
xwalkctl | egrep -e "Home Screen" | awk '{print $1}' | xargs --no-run-if-empty xwalkctl -u
xwalkctl | egrep -e "Hello Tizen" | awk '{print $1}' | xargs --no-run-if-empty xwalkctl -u
xwalkctl | egrep -e "Browser" | awk '{print $1}' | xargs --no-run-if-empty xwalkctl -u
xwalkctl | egrep -e "News" | awk '{print $1}' | xargs --no-run-if-empty xwalkctl -u
#These lines install the wigits.
xwalkctl -i /home/app/DNA_HomeScreen.wgt
xwalkctl -i /home/app/DNA_HelloTizen.wgt
xwalkctl -i /home/app/DNA_Browser.wgt
xwalkctl -i /home/app/DNA_News.wgt
#Launch the app after install
xwalkctl | egrep -e "Home Screen" | awk '{print $1}' | xargs --no-run-if-empty xwalk-launcher -d