mirror of
https://git.yoctoproject.org/poky
synced 2026-09-24 22:36:21 +02:00
Currently, weston when autolauched with systemd ends up with seat0 related errors because its launched before seat0 is assigned. Fixes [05:16:09.357] logind: failed to get session seat [05:16:09.358] logind: cannot setup systemd-logind helper (-61), using legacy fallback The above error results in ptest failures in parselogs, even though weston has started ok using fallback methods, these errors are still seen in logs Also fixes weston ptests RESULTS - weston.WestonTest.test_weston_can_initialize_new_wayland_compositor: PASSED (8.58s) (From OE-Core rev: c21fa5a291ab207a084285935ab73a0b4225c965) Signed-off-by: Khem Raj <raj.khem@gmail.com> Cc: Marek Vasut <marex@denx.de> Cc: Henning Heinold <henning@itconsulting-heinold.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
65 lines
1.6 KiB
Desktop File
65 lines
1.6 KiB
Desktop File
# This is a system unit for launching Weston with auto-login as the
|
|
# user configured here.
|
|
#
|
|
# Weston must be built with systemd support, and your weston.ini must load
|
|
# the plugin systemd-notify.so.
|
|
[Unit]
|
|
Description=Weston, a Wayland compositor, as a system service
|
|
Documentation=man:weston(1) man:weston.ini(5)
|
|
Documentation=http://wayland.freedesktop.org/
|
|
|
|
# Make sure we are started after logins are permitted.
|
|
After=systemd-user-sessions.service
|
|
|
|
# If Plymouth is used, we want to start when it is on its way out.
|
|
After=plymouth-quit-wait.service
|
|
|
|
# D-Bus is necessary for contacting logind. Logind is required.
|
|
Wants=dbus.socket
|
|
After=dbus.socket
|
|
|
|
# Since we are part of the graphical session, make sure we are started before
|
|
# it is complete.
|
|
Before=graphical.target
|
|
|
|
# Prevent starting on systems without virtual consoles, Weston requires one
|
|
# for now.
|
|
ConditionPathExists=/dev/tty0
|
|
|
|
[Service]
|
|
# Requires systemd-notify.so Weston plugin.
|
|
Type=notify
|
|
ExecStart=/usr/bin/weston --modules=systemd-notify.so
|
|
|
|
# Optional watchdog setup
|
|
TimeoutStartSec=60
|
|
WatchdogSec=20
|
|
|
|
# The user to run Weston as.
|
|
User=%I
|
|
|
|
# Make sure working directory is users home directory
|
|
WorkingDirectory=/home/%i
|
|
|
|
# Set up a full user session for the user, required by Weston.
|
|
PAMName=weston-autologin
|
|
|
|
# A virtual terminal is needed.
|
|
TTYPath=/dev/tty7
|
|
TTYReset=yes
|
|
TTYVHangup=yes
|
|
TTYVTDisallocate=yes
|
|
|
|
# Fail to start if not controlling the tty.
|
|
StandardInput=tty-fail
|
|
StandardOutput=journal
|
|
StandardError=journal
|
|
|
|
# Log this user with utmp, letting it show up with commands 'w' and 'who'.
|
|
UtmpIdentifier=tty7
|
|
UtmpMode=user
|
|
|
|
[Install]
|
|
WantedBy=graphical.target
|
|
DefaultInstance=tty7
|