summaryrefslogtreecommitdiff
path: root/recipes-graphics/wayland-app-launch
AgeCommit message (Collapse)Author
2022-12-07Revert "wayland-app-launch: do not restart on failure"Stefan Eichenberger
This reverts commit c6baf131a27bad3515cec907e307c7d0af297409. Now that the cinematicexperience application doesn't crash anymore we can enable the restart on failure again. This will handle the unlikely case when the application would still crash in an unlikely event. Related-to: ELB-4884 Signed-off-by: Stefan Eichenberger <stefan.eichenberger@toradex.com> (cherry picked from commit 34121f5c91729f7b9185f879318bfd85746e7112) Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2022-12-07wayland-app-launch: do not restart on failureStefan Eichenberger
If the wayland application fails to start we no longer restart it. This can happen when there is no display connected. For example the Qt5_CinematicExperience will fail to start with the following message: xdg_surface geometry (1920 x 1080) is larger than the configured fullscreen state (0 x 0) If we keep restarting the application we spam the kernel log with the following messages: imx-drm display-subsystem: [drm] Cannot find any crtc or sizes Related-to: ELB-4726 Signed-off-by: Stefan Eichenberger <stefan.eichenberger@toradex.com> (cherry picked from commit c6baf131a27bad3515cec907e307c7d0af297409) Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2022-09-29wayland-app-launch: remove shell-scriptPhilippe Schenker
weston uses now systemd-notify to notify systemd when it is up and running. This is the reason why we do no longer need wayland-app-launch.sh with the synchronization point in it. Remove wayland-app-launch.sh script. Remove also the init directory feature as it is no longer needed. qtsmarthome works now from any directory. Related-to: ELB-4784 Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2022-09-29wayland-app-launch: add xwayland_display env variablePhilippe Schenker
Weston is no longer being started as root. To allow applications and other users to start applications that render to weston there is the socket-file in /run/wayland-0 created. Do also specify the user we want the app to be started from. Do also instruct systemd with PAMName to treat as a login so XDG_RUNTIME_DIR is also set. Related-to: ELB-4784 Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2022-08-08wayland-app-launch: Fix weston service nameFrancesco Dolcini
Fix weston service name, it was changed in oe-core commit dd83fb40f767 ("weston-init: Stop running weston as root") from weston@root.service to weston.service. Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
2021-08-14layer: convert to new override syntaxMax Krummenacher
This is the result of automated script (0.9.3) conversion: +# meta-toradex-distro +vars = vars + ["preempt-rt","tdx","upstream"] +# meta-toradex-* machines +vars = vars + ["apalis-","colibri-","verdin-","tegra124"] +# meta-freescale +vars = vars + ["imx","mx6","mx7","mx8","use-mainline-bsp","use-nxp-bsp"] ../openembedded-core/scripts/contrib/convert-overrides.py . converting the metadata to use ":" as the override character instead of "_". Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2020-12-08wayland-app-launch: cinematicexperience: add correct dependenciesPhilippe Schenker
Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com> (cherry picked from commit 07a1a12d2487df6175da53644f645ed156e0ca06)
2020-12-08wayland-app-launch: make initial path workingPhilippe Schenker
Related-to: ELB-3153 Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com> (cherry picked from commit 3964c2cfc63e0c3418a2d693b61c3dc95d55c8d2)
2020-12-08tdx-reference-multimedia-images: choose different qt demosPhilippe Schenker
For low-end modules without GPU only show the QT analogclock. For TK1 also choose a different QT-demo. Related-to: ELB-3153 Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com> (cherry picked from commit c79cc904871adae96d1c0d0743c5a2605cb25e20)
2020-07-22wayland-app-launch: wait longer until application is startedPhilippe Schenker
0.5 seconds is not enough in some cases. Wait a little bit longer to avoid having the app restarted multiple times. Related-to: ELB-2838 Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2020-07-22wayland-app-launch: restart app only in case of a failurePhilippe Schenker
And limit the restart to once per second. Related-to: ELB-2838 Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2020-07-22wayland-app-launch: add recipe for qtdemo launchPhilippe Schenker
Related-to: ELB-2838 Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2020-07-22wayland-app-launch: add possibility to set environment for appPhilippe Schenker
Related-to: ELB-2838 Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2020-07-22wayland-app-launch: use new weston@root.service naming schemePhilippe Schenker
Related-to: ELB-2838 Signed-off-by: Philippe Schenker <philippe.schenker@toradex.com>
2019-06-11wayland-app-launch: fix service status detectionApalis-iMX8_Console-Image_3.0b1.40-20190612Max Krummenacher
The service expects the script to return (Type=forking). Change the script so that the wayland app is started in the background. While at it configure the service to restart the application. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2019-05-29wayland-app-launch: add a simple systemd serviceMax Krummenacher
This tries to start a wayland application after weston got started. Create a copy of wayland-terminal-launch_1.0.bb with the variables changed according to your needs. Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>