--- /dev/null
+[Desktop Entry]
+Name=Annex
+Type=Application
+Exec=/usr/bin/xwalk-launcher hnabpnbionlaokfnobomjleblmmiefig
+Icon=/opt/share/widget_demo/annex.png
+
--- /dev/null
+[Desktop Entry]
+Name=Bubblewrap
+Type=Application
+Exec=/usr/bin/xwalk-launcher kmnbdhfbkjkeilhpbooaecgpllbollfn
+Icon=/opt/share/widget_demo/bubblewrap.png
+
--- /dev/null
+[Desktop Entry]
+Name=Go
+Type=Application
+Exec=/usr/bin/xwalk-launcher clnlcbphcafhecdadfkjddinnigipace
+Icon=/opt/share/widget_demo/go.png
+
bob:bubblewrap.wgt go.wgt
carol:
app:mancala.wgt
-guest:BluetoothChat.wgt
+guest:
if [ -x /usr/bin/wrt-installer ]; then
wrt-installer -i $wgtdir/$wgt
else
- xwalkctl -i $wgtdir/$wgt
+ xwalkctl -i $wgtdir/$wgt && ln -sf $wgtdir/$(basename $wgt .wgt).desktop ~/.applications/desktop/
fi
done
-# setup desktop icons for xwalk
-if [ ! -x /usr/bin/wrt-installer ]; then
- for id in $(sqlite3 ~/.config/xwalk-service/applications.db 'select id from applications'); do
- ln -sf /opt/share/applications/xwalk-service.$id.*.desktop ~/.applications/desktop/
- done
-fi
-
[[ "$(id -u)" == "0" ]] && chmod -R a+rw ${TZ_SYS_DB}/
if [ -x /usr/bin/wrt-launcher ]; then
--- /dev/null
+[Desktop Entry]
+Name=Mancala
+Type=Application
+Exec=/usr/bin/xwalk-launcher fidoaebfkacalgdedfodionhmopneipb
+Icon=/opt/share/widget_demo/mancala.png
+
Source0: %{name}-%{version}.tar.gz
BuildRequires: pkgconfig(libtzplatform-config)
Requires: libtzplatform-config
+Requires: desktop-skin
%description
Wrt-widgets prepare a suitable pc oriented environment to install Web apps
mkdir -p %{buildroot}/%{TZ_SYS_SHARE}/widget_demo
cp -r *.wgt %{buildroot}/%{TZ_SYS_SHARE}/widget_demo/
+cp -r *.png %{buildroot}/%{TZ_SYS_SHARE}/widget_demo/
+cp -r *.desktop %{buildroot}/%{TZ_SYS_SHARE}/widget_demo/
cp install.conf %{buildroot}/%{TZ_SYS_SHARE}/widget_demo/
%post