Skip to content
Snippets Groups Projects
Commit 9c1ae36c authored by Tobias Kahlki's avatar Tobias Kahlki
Browse files

base-files:profiles: Moved and updated profiles for Qt/Wayland

Moved the profiles with the environment initialization into a new
sub-folder and activated them by linking to the sub-directory.
The reason for this is, that weston and the qt-compositor need
different environments and we want an easy way of exchanging them.
The wayland related parts have been moved from the qtenv to weston
and qt-compositor.
parent 3abb7323
No related branches found
No related tags found
2 merge requests!418Integrate gitlab-ci/fix-gitlab-ci-integration and 6 more,!410qt:compositor: Fixed qt-compositor to run under Yocto Kirkstone
# Defaults to allow start of graphical applications from the command-line
# In contrast to weston, the qt-compositor can't re-use the
# socket from a socket unit at the moment. Because of this,
# the service has to be started manually. Since the service
# runs as the "qt" user, it provides a socket under /run/user
# which has to be populated via the WAYLAND_DISPLAY variable.
export WAYLAND_DISPLAY=/run/user/1001/wayland-0 # UID = qt
export XDG_RUNTIME_DIR=/run/user/1001
# Defaults to allow start of gui tools from the commandline
export XDG_RUNTIME_DIR=/var/run/user/1000
# Defaults to allow start of Qt applications from the command-line
export QT_QPA_FONTDIR=/usr/share/fonts/truetype
export QT_QPA_PLATFORM=wayland
# Defaults to allow start of graphical applications from the command-line
# The weston systemd service is activated by a weston socket unit.
# This socket unit listens on /run/wayland-0 for incoming requests.
# If it receives a request, it starts the service itself.
# The service then re-uses the /run/wayland-0 socket which is why
# setting the WAYLAND_DISPLAY variable to /run/wayland-0 works.
export WAYLAND_DISPLAY=/run/wayland-0
export XDG_RUNTIME_DIR=/run/user/1000 # UID = weston
FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
SRC_URI:append = " file://profile_d_alias.sh \
file://profile_d_qtenv.sh \
"
SRC_URI:append = " \
file://profile_d_alias.sh \
file://profile_d_qt-compositor.sh \
file://profile_d_qt.sh \
file://profile_d_weston.sh \
"
do_install:append() {
install -d ${D}${sysconfdir}/profile.d
install -m 0755 ${WORKDIR}/profile_d_alias.sh ${D}${sysconfdir}/profile.d/alias.sh
install -m 0755 ${WORKDIR}/profile_d_qtenv.sh ${D}${sysconfdir}/profile.d/qtenv.sh
install -d ${D}${sysconfdir}/profile.d/available
install -m 0755 ${WORKDIR}/profile_d_alias.sh ${D}${sysconfdir}/profile.d/available/alias.sh
install -m 0755 ${WORKDIR}/profile_d_qt-compositor.sh ${D}${sysconfdir}/profile.d/available/qt-compositor.sh
install -m 0755 ${WORKDIR}/profile_d_qt.sh ${D}${sysconfdir}/profile.d/available/qt.sh
install -m 0755 ${WORKDIR}/profile_d_weston.sh ${D}${sysconfdir}/profile.d/available/weston.sh
ln -s available/alias.sh ${D}${sysconfdir}/profile.d/alias.sh
ln -s available/qt.sh ${D}${sysconfdir}/profile.d/qt.sh
ln -s available/weston.sh ${D}${sysconfdir}/profile.d/weston.sh
}
do_configure:append:mx6ull() {
echo export QT_QUICK_BACKEND=software >> ${WORKDIR}/profile_d_qtenv.sh
echo export QT_QUICK_BACKEND=software >> ${WORKDIR}/profile_d_qt.sh
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment