blob: d7df6a011b44096cce3cffe34f3b765575694b7a [file] [log] [blame]
# 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
oom score never
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.
RUNTIME_DIR="/run/chrome"
mkdir -p "${RUNTIME_DIR}" # croslint: disable because this is not in prod, will get reviewed in due time
chown chronos:chronos "${RUNTIME_DIR}" # croslint: disable because this is not in prod, will get reviewed in due time
#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
exec croscomp