qt5: qt6: cinematicexperience: add shortcut to the demo in the desktop toolbar
This commit creates a new launcher group in the '/etc/xdg/weston/weston.ini' to have access to the QT cinematicexperience. This is done for QT5 (ccmp15, ccimx8mm, ccim8mn) and QT6 (ccimx93). https://onedigi.atlassian.net/browse/DEL-8379 Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>
This commit is contained in:
parent
21e31425ad
commit
e1fa904b38
|
|
@ -35,6 +35,7 @@ do_install:append() {
|
||||||
install -m 0644 ${WORKDIR}/weston.ini ${D}${sysconfdir}/xdg/weston
|
install -m 0644 ${WORKDIR}/weston.ini ${D}${sysconfdir}/xdg/weston
|
||||||
|
|
||||||
install -m 0644 ${WORKDIR}/digi_background.png ${D}${datadir}/weston/backgrounds/digi_background.png
|
install -m 0644 ${WORKDIR}/digi_background.png ${D}${datadir}/weston/backgrounds/digi_background.png
|
||||||
|
printf "\n[launcher]\nicon=${datadir}/weston/terminal.png\npath=${bindir}/weston-terminal\n" >> ${D}${sysconfdir}/xdg/weston/weston.ini
|
||||||
|
|
||||||
install -d ${D}${systemd_system_unitdir} ${D}${sbindir}
|
install -d ${D}${systemd_system_unitdir} ${D}${sbindir}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -34,6 +34,8 @@ do_install:append() {
|
||||||
do_install:append() {
|
do_install:append() {
|
||||||
install -Dm0755 ${WORKDIR}/profile ${D}${sysconfdir}/profile.d/weston.sh
|
install -Dm0755 ${WORKDIR}/profile ${D}${sysconfdir}/profile.d/weston.sh
|
||||||
install -Dm0644 ${WORKDIR}/digi_background.png ${D}${datadir}/weston/digi_background.png
|
install -Dm0644 ${WORKDIR}/digi_background.png ${D}${datadir}/weston/digi_background.png
|
||||||
|
|
||||||
|
printf "\n[launcher]\nicon=${datadir}/weston/terminal.png\npath=${bindir}/weston-terminal\n" >> ${D}${sysconfdir}/xdg/weston/weston.ini
|
||||||
}
|
}
|
||||||
|
|
||||||
do_install:append:ccimx93() {
|
do_install:append:ccimx93() {
|
||||||
|
|
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 1.1 KiB |
|
|
@ -0,0 +1,12 @@
|
||||||
|
# Copyright (C) 2023 Digi International.
|
||||||
|
|
||||||
|
FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
|
||||||
|
|
||||||
|
SRC_URI += "file://icon_qt.png"
|
||||||
|
|
||||||
|
do_install:append() {
|
||||||
|
install -d ${D}${datadir}/icons/hicolor/24x24
|
||||||
|
install -m 0644 ${WORKDIR}/icon_qt.png ${D}${datadir}/icons/hicolor/24x24/
|
||||||
|
|
||||||
|
ln -sf qt5-cinematic-experience ${D}${bindir}/cinematic-experience
|
||||||
|
}
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 1.1 KiB |
|
|
@ -0,0 +1,12 @@
|
||||||
|
# Copyright (C) 2023 Digi International.
|
||||||
|
|
||||||
|
FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
|
||||||
|
|
||||||
|
SRC_URI += "file://icon_qt.png"
|
||||||
|
|
||||||
|
do_install:append() {
|
||||||
|
install -d ${D}${datadir}/icons/hicolor/24x24
|
||||||
|
install -m 0644 ${WORKDIR}/icon_qt.png ${D}${datadir}/icons/hicolor/24x24/
|
||||||
|
|
||||||
|
ln -sf qt6-cinematic-experience ${D}${bindir}/cinematic-experience
|
||||||
|
}
|
||||||
|
|
@ -1,8 +1,17 @@
|
||||||
#
|
#
|
||||||
# Copyright (C) 2016-2020 Digi International.
|
# Copyright (C) 2016-2023 Digi International.
|
||||||
#
|
#
|
||||||
require dey-image-graphical.inc
|
require dey-image-graphical.inc
|
||||||
|
|
||||||
DESCRIPTION = "DEY image with QT graphical libraries"
|
DESCRIPTION = "DEY image with QT graphical libraries"
|
||||||
|
|
||||||
GRAPHICAL_CORE = "qt"
|
GRAPHICAL_CORE = "qt"
|
||||||
|
|
||||||
|
add_cinematicexperience_shortcut() {
|
||||||
|
if [ -f ${IMAGE_ROOTFS}${datadir}/icons/hicolor/24x24/icon_qt.png ] && [ -f ${IMAGE_ROOTFS}${sysconfdir}/xdg/weston/weston.ini ]; then
|
||||||
|
printf "\n[launcher]\nicon=${datadir}/icons/hicolor/24x24/icon_qt.png\npath=${bindir}/cinematic-experience\n" >> ${IMAGE_ROOTFS}${sysconfdir}/xdg/weston/weston.ini
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
ROOTFS_POSTPROCESS_COMMAND:imxgpu += "add_cinematicexperience_shortcut; "
|
||||||
|
ROOTFS_POSTPROCESS_COMMAND:ccmp15 += "add_cinematicexperience_shortcut; "
|
||||||
|
ROOTFS_POSTPROCESS_COMMAND:ccimx93 += "add_cinematicexperience_shortcut; "
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue