diff --git a/meta-digi-dey/recipes-qt/demo-extrafiles/qt5-demo-extrafiles.bbappend b/meta-digi-dey/recipes-qt/demo-extrafiles/qt5-demo-extrafiles.bbappend index 508a98fdc..481ffc15d 100644 --- a/meta-digi-dey/recipes-qt/demo-extrafiles/qt5-demo-extrafiles.bbappend +++ b/meta-digi-dey/recipes-qt/demo-extrafiles/qt5-demo-extrafiles.bbappend @@ -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 diff --git a/meta-digi-dey/recipes-qt/examples/qtsmarthome-1.0/qtsmarthome.desktop b/meta-digi-dey/recipes-qt/examples/qtsmarthome-1.0/qtsmarthome.desktop new file mode 100644 index 000000000..fef8057a8 --- /dev/null +++ b/meta-digi-dey/recipes-qt/examples/qtsmarthome-1.0/qtsmarthome.desktop @@ -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 diff --git a/meta-digi-dey/recipes-qt/examples/qtsmarthome-1.0/qtsmarthome.png b/meta-digi-dey/recipes-qt/examples/qtsmarthome-1.0/qtsmarthome.png new file mode 100644 index 000000000..d364da8ca Binary files /dev/null and b/meta-digi-dey/recipes-qt/examples/qtsmarthome-1.0/qtsmarthome.png differ diff --git a/meta-digi-dey/recipes-qt/examples/qtsmarthome_1.0.bbappend b/meta-digi-dey/recipes-qt/examples/qtsmarthome_1.0.bbappend index b6f12c13a..88cee0661 100644 --- a/meta-digi-dey/recipes-qt/examples/qtsmarthome_1.0.bbappend +++ b/meta-digi-dey/recipes-qt/examples/qtsmarthome_1.0.bbappend @@ -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"