qtsmarthome: move desktop launcher from qt5-demo-extrafiles recipe

Instead of having a recipe to add launchers for a bunch of applications
(most of them are not available anymore) move the qtsmarthome launcher
to the recipe that installs the package.

https://jira.digi.com/browse/DEL-3912

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
This commit is contained in:
Javier Viguera 2017-08-09 18:32:17 +02:00
parent 48ff14dc78
commit 64010754d0
4 changed files with 23 additions and 1 deletions

View File

@ -15,6 +15,9 @@ do_install_append () {
install -m 0644 ${WORKDIR}/qmlvideo.desktop ${D}${datadir}/applications/
install -m 0644 ${WORKDIR}/qmlvideo.png ${D}${datadir}/pixmaps/
# Remove the desktop launchers that have been moved along with its package
rm -f ${D}${datadir}/applications/qtsmarthome.desktop ${D}${datadir}/pixmaps/qtsmarthome.png
# Remove the desktop launchers of the demo/example applications we do not provide.
rm -f ${D}${datadir}/applications/hellogl_es2.desktop ${D}${datadir}/pixmaps/hellogl_es2.png
rm -f ${D}${datadir}/applications/qt5basket.desktop ${D}${datadir}/pixmaps/qt5basket.png

View File

@ -0,0 +1,9 @@
[Desktop Entry]
Name=Qt5 Smart Home
Exec=/bin/sh -c "cd /usr/share/qtsmarthome-1.0/; ./smarthome"
Icon=qtsmarthome
Terminal=false
Type=Application
X-MB-SingleInstance=true
Comment=Qt5 Smart Home
StartupNotify=false

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

View File

@ -2,6 +2,16 @@
FILESEXTRAPATHS_prepend := "${THISDIR}/${BP}:"
SRC_URI += "file://0001-qtsmarthome-fix-runtime-warning.patch"
SRC_URI += " \
file://qtsmarthome.desktop \
file://qtsmarthome.png \
file://0001-qtsmarthome-fix-runtime-warning.patch \
"
do_install_append() {
install -d ${D}${datadir}/applications ${D}${datadir}/pixmaps
install -m 0644 ${WORKDIR}/qtsmarthome.desktop ${D}${datadir}/applications
install -m 0644 ${WORKDIR}/qtsmarthome.png ${D}${datadir}/pixmaps
}
RDEPENDS_${PN} += "qtsvg-plugins"