diff options
author | Stephane Desneux <stephane.desneux@open.eurogiciel.org> | 2014-04-11 22:23:02 +0200 |
---|---|---|
committer | Stephane Desneux <stephane.desneux@open.eurogiciel.org> | 2014-04-11 22:23:02 +0200 |
commit | c44abf3dc7a65bda45c316c249e857bb89d03a87 (patch) | |
tree | 8800246fc74eaadc426850138f164931c840fdc1 | |
parent | bac8ee17050fbf715ae98d367b989975a43e823f (diff) | |
download | wrt-widgets-c44abf3dc7a65bda45c316c249e857bb89d03a87.tar.gz wrt-widgets-c44abf3dc7a65bda45c316c249e857bb89d03a87.tar.bz2 wrt-widgets-c44abf3dc7a65bda45c316c249e857bb89d03a87.zip |
demo mode: add icons and desktop files
Change-Id: If1d84113d0d5436ecc22ad7c70f105976118cfc8
Signed-off-by: Stephane Desneux <stephane.desneux@open.eurogiciel.org>
-rw-r--r-- | annex.desktop | 6 | ||||
-rw-r--r-- | annex.png | bin | 0 -> 2141 bytes | |||
-rw-r--r-- | bubblewrap.desktop | 6 | ||||
-rw-r--r-- | bubblewrap.png | bin | 0 -> 2239 bytes | |||
-rw-r--r-- | go.desktop | 6 | ||||
-rw-r--r-- | go.png | bin | 0 -> 2006 bytes | |||
-rw-r--r-- | install.conf | 2 | ||||
-rwxr-xr-x | install_widgets.sh | 9 | ||||
-rw-r--r-- | mancala.desktop | 6 | ||||
-rw-r--r-- | mancala.png | bin | 0 -> 2590 bytes | |||
-rw-r--r-- | packaging/wrt-widgets.spec | 3 |
11 files changed, 29 insertions, 9 deletions
diff --git a/annex.desktop b/annex.desktop new file mode 100644 index 0000000..f794694 --- /dev/null +++ b/annex.desktop @@ -0,0 +1,6 @@ +[Desktop Entry] +Name=Annex +Type=Application +Exec=/usr/bin/xwalk-launcher hnabpnbionlaokfnobomjleblmmiefig +Icon=/opt/share/widget_demo/annex.png + diff --git a/annex.png b/annex.png Binary files differnew file mode 100644 index 0000000..d664a74 --- /dev/null +++ b/annex.png diff --git a/bubblewrap.desktop b/bubblewrap.desktop new file mode 100644 index 0000000..24df394 --- /dev/null +++ b/bubblewrap.desktop @@ -0,0 +1,6 @@ +[Desktop Entry] +Name=Bubblewrap +Type=Application +Exec=/usr/bin/xwalk-launcher kmnbdhfbkjkeilhpbooaecgpllbollfn +Icon=/opt/share/widget_demo/bubblewrap.png + diff --git a/bubblewrap.png b/bubblewrap.png Binary files differnew file mode 100644 index 0000000..4301515 --- /dev/null +++ b/bubblewrap.png diff --git a/go.desktop b/go.desktop new file mode 100644 index 0000000..bf38f9f --- /dev/null +++ b/go.desktop @@ -0,0 +1,6 @@ +[Desktop Entry] +Name=Go +Type=Application +Exec=/usr/bin/xwalk-launcher clnlcbphcafhecdadfkjddinnigipace +Icon=/opt/share/widget_demo/go.png + Binary files differdiff --git a/install.conf b/install.conf index a3d51dc..aaca40e 100644 --- a/install.conf +++ b/install.conf @@ -2,4 +2,4 @@ alice:annex.wgt bob:bubblewrap.wgt go.wgt carol: app:mancala.wgt -guest:BluetoothChat.wgt +guest: diff --git a/install_widgets.sh b/install_widgets.sh index 7165153..f2339ac 100755 --- a/install_widgets.sh +++ b/install_widgets.sh @@ -20,17 +20,10 @@ for wgt in $(grep "^$USER" $wgtdir/install.conf | cut -f2 -d':'); do 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 diff --git a/mancala.desktop b/mancala.desktop new file mode 100644 index 0000000..41a31e9 --- /dev/null +++ b/mancala.desktop @@ -0,0 +1,6 @@ +[Desktop Entry] +Name=Mancala +Type=Application +Exec=/usr/bin/xwalk-launcher fidoaebfkacalgdedfodionhmopneipb +Icon=/opt/share/widget_demo/mancala.png + diff --git a/mancala.png b/mancala.png Binary files differnew file mode 100644 index 0000000..89f5ca3 --- /dev/null +++ b/mancala.png diff --git a/packaging/wrt-widgets.spec b/packaging/wrt-widgets.spec index 47353f0..2d973db 100644 --- a/packaging/wrt-widgets.spec +++ b/packaging/wrt-widgets.spec @@ -8,6 +8,7 @@ BuildArch: noarch 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 @@ -26,6 +27,8 @@ cp prepare_widgets.sh %{buildroot}/%{_bindir} 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 |