Hello, community!
I have an issue, that during Yocto Distro build I have missed XDG_RUNTIME_DIR path. Also I've found who can set this path:
~/var-fslc-yocto/sources$ grep -nri XDG_RUNTIME_DIR=/run/user
poky/meta/lib/oeqa/runtime/cases/weston.py:34: return 'export XDG_RUNTIME_DIR=/run/user/`id -u weston`; export WAYLAND_DISPLAY=wayland-1; %s' % cmd
poky/meta/recipes-graphics/wayland/weston-init/weston-start:60: export XDG_RUNTIME_DIR=/run/user/`id -u ${WESTON_USER}`
poky/meta/recipes-graphics/wayland/weston-init/weston-start:71:su -c "XDG_RUNTIME_DIR=/run/user/`id -u ${WESTON_USER}` weston $weston_args --log=/tmp/weston.log" $WESTON_USER
meta-variscite-sdk/dynamic-layers/fsl-sdk-release/recipes-qt/qt6/qtbase/qt6-linuxfb.sh:3: export XDG_RUNTIME_DIR=/run/user/$(id -u)
meta-variscite-sdk/dynamic-layers/qt5-layer/recipes-qt/qt5/qtbase_%.bbappend:41: echo " export XDG_RUNTIME_DIR=/run/user/\$(id -u)" >> ${D}${sysconfdir}/profile.d/qt5.sh
meta-variscite-sdk/recipes-graphics/wayland/weston-service/weston-app.sh:7: export XDG_RUNTIME_DIR=/run/user/`id -u`
Well, I have no QT, so I need to run somehow weston-app.sh or weston-start.
On my distro I have:
DISTRO_FEATURES:append = " x11 \
wayland \
weston-xwayland \
Can someone tell me what should I configure to be able to run the weston-app.service? Now I have no weston-app.service on my build.
Hello @Anton_K,
I hope you are doing well.
I have a few queries to ask, Please find them below.
1)Please share the Linux BSP version, EVK you are using.
2)Please share the documents or Sequence of commands you have been following.
3)Please share the error logs as well as the console logs.
4)Please share the Yocto version you are using.
These will help us to debug the issue.
Thanks & Regards,|
Sanket Parekh
Hello, thanks for response.
1. Based on variscite-bsp. I don't know where to see the version, around this commit: 4c281f95ebfd49094f1944b6753d725dd775f8af Probably minus several commits before
2. I'm calling gst-launch1.0 and for graphics it requires XDG_RUNTIME_DIR path. This might be environment variable
3. simple error: error: XDG_RUNTIME_DIR not set in the environment. I can set this variable manually, but I guess it should be installed
4. Yocto Kirkstone v15.5.60
Thanks in advance, Anton
Hello @Anton_K,
I hope you are doing well.
Please refer to section 7.1 Creating a custom distro in the below link.
Please refer to the section 5.6.3 Wayland image on i.MX 8M Quad EVK in the below link.
https://www.nxp.com/docs/en/
Please also refer to Chapter 10 Wayland and Weston in the below link.
https://www.nxp.com/docs/en/
It will help you!
Thanks & Regards,
Sanket Parekh
There is really no solution on the links. I must use XDG_RUNTIME_DIR=/run/user/'id -u' as environment setup. This is the end.
Hello @Anton_K,
I hope you are doing well.
So, If there are no further queries from your side.
Shall I close this thread?
Thanks & Regards,
Sanket Parekh
Hi, sure, close this thread. Thank you anyway