blob: 763e418ef28c2762129f9e72460c06641d5e790b [file] [log] [blame] [edit]
# Copyright (c) 2021 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
description "ChromeOS compositor"
author "chromium-os-dev@chromium.org"
# boot-splash depends on udev-trigger-early because frecon does need
# graphics device to be ready to display splash screen and tty (ptmx)
# device to create terminals, it also uses input devices (though they
# can also be hotplugged).
start on stopped udev-trigger-early
env XDG_RUNTIME_DIR=/run/chrome
export XDG_RUNTIME_DIR
# Put screenshots in /home/chronos
env XDG_PICTURES_DIR=/home/chronos
export XDG_PICTURES_DIR
env aWAYLAND_DEBUG=server
export WAYLAND_DEBUG
pre-start script
# Create the runtime directory.
mkdir -p /run/chrome
chown chronos:chronos /run/chrome
#chmod 770 /run/chrome
end script
# We should be using minijail, but when we do somehow arc++ can't
# connect.
#exec minijail0 -u chronos -g chronos -G /usr/bin/weston \
exec chrt --fifo 1 sudo -u chronos -E /usr/bin/weston \
--backend=drm-backend.so \
--tty -1 --scale 1 --idle-time=0 --socket=wayland-0 \
> /root/weston-log 2>&1