meta-digi-dey: add desktop shortcut for qmlvideo player
We will use 'qmlvideo' application for QT5 media player demo, so just create a desktop launcher. https://jira.digi.com/browse/DEL-2007 Signed-off-by: Javier Viguera <javier.viguera@digi.com>
This commit is contained in:
parent
fef0cd8da3
commit
0f4606386c
|
|
@ -1,9 +1,20 @@
|
|||
# Copyright (C) 2015 Digi International.
|
||||
|
||||
FILESEXTRAPATHS_prepend := "${THISDIR}/${BPN}:"
|
||||
|
||||
SRC_URI += " \
|
||||
file://qmlvideo.desktop \
|
||||
file://qmlvideo.png \
|
||||
"
|
||||
|
||||
do_install_append () {
|
||||
# Fix path for OpenGLES example
|
||||
sed -i -e '/Exec/{s,hellogl_es2,hellogl2,g}' ${D}${datadir}/applications/hellogl_es2.desktop
|
||||
|
||||
# Add qmlvideo shortcut
|
||||
install -m 0644 ${WORKDIR}/qmlvideo.desktop ${D}${datadir}/applications/
|
||||
install -m 0644 ${WORKDIR}/qmlvideo.png ${D}${datadir}/pixmaps/
|
||||
|
||||
# Remove the desktop launchers of the demo/example applications we do not provide.
|
||||
rm -f ${D}${datadir}/applications/qt5basket.desktop ${D}${datadir}/pixmaps/qt5basket.png
|
||||
rm -f ${D}${datadir}/applications/qt5nesting.desktop ${D}${datadir}/pixmaps/qt5nesting.png
|
||||
|
|
|
|||
|
|
@ -0,0 +1,9 @@
|
|||
[Desktop Entry]
|
||||
Name=Qt5 QML player
|
||||
Exec=/bin/sh -c "cd /usr/share/qt5/examples/multimedia/video/qmlvideo; ./qmlvideo"
|
||||
Icon=qmlvideo
|
||||
Terminal=false
|
||||
Type=Application
|
||||
X-MB-SingleInstance=true
|
||||
Comment=Qt5 Qml Video and Camera player
|
||||
StartupNotify=false
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 1.9 KiB |
Loading…
Reference in New Issue