forked from brl/citadel
Bruce Leidl
e20e601129
Updated Recipes: gcr4 3.92 -> 4.0.0 geoclue 2.5.7 -> 2.7.0 gjs 1.73.2 -> 1.77.90 gnome-backgrounds 42.0 -> 45.0 gnome-control-center 43.0 -> 45.0 gnome-desktop 43.rc -> 44.0 gsettings-desktop-schema 43.0 -> 45.0 libblockdev 2.26 -> 2.28 libgweather4 4.0.0 -> 4.2.0 libnma 1.8.38 -> 1.10.6 mozjs 102 -> 115 nss 3.64 -> 3.74 ovmf 202205 -> 202211 New recipes: appstream 0.16.3 libei 1.1.0 libxmlb 0.3.14 tecla 45.0 webm/libvpx 1.13 Recipes updated to replace poky recipes with insufficient version: glib-2.0 2.78.0 gtk+/gtk+3 3.24.38 gtk+/gtk4 4.12.1 icu 73_2 wayland/wayland 1.22.0 wayland/wayland-protocols 1.32 wayland/libinput 1.24.0 libadwaita 1.4.0
72 lines
1.5 KiB
Bash
Executable File
72 lines
1.5 KiB
Bash
Executable File
#!/bin/sh
|
|
# Copyright (C) 2016 O.S. Systems Software LTDA.
|
|
# Copyright (C) 2016 Freescale Semiconductor
|
|
|
|
export PATH="/sbin:/usr/sbin:/bin:/usr/bin"
|
|
|
|
usage() {
|
|
cat <<EOF
|
|
$0 [<weston options>]
|
|
EOF
|
|
}
|
|
|
|
## Module support
|
|
modules_dir=@DATADIR@/weston-start
|
|
|
|
# Add weston extra argument
|
|
add_weston_argument() {
|
|
weston_args="$weston_args $1"
|
|
}
|
|
|
|
## Add module to --modules argument
|
|
add_weston_module() {
|
|
if [[ "x${weston_modules}" == "x" ]]; then
|
|
weston_modules="--modules "
|
|
fi;
|
|
weston_modules+="${1},"
|
|
}
|
|
|
|
if [ -n "$WAYLAND_DISPLAY" ]; then
|
|
echo "ERROR: A Wayland compositor is already running, nested Weston instance is not supported yet."
|
|
exit 1
|
|
fi
|
|
|
|
if [ -n "$WESTON_USER" ]; then
|
|
if [ -z "$WESTON_GROUP" ]; then
|
|
# no explicit WESTON_GROUP given, therefore use WESTON_USER
|
|
export WESTON_GROUP="${WESTON_USER}"
|
|
fi
|
|
fi
|
|
|
|
weston_args=$*
|
|
|
|
# Load and run modules
|
|
if [ -d "$modules_dir" ]; then
|
|
for m in "$modules_dir"/*; do
|
|
# Skip backup files
|
|
if [ "`echo $m | sed -e 's/\~$//'`" != "$m" ]; then
|
|
continue
|
|
fi
|
|
|
|
# process module
|
|
. $m
|
|
if [[ x"{$weston_modules}" != "x" ]]; then
|
|
add_weston_argument "${weston_modules}"
|
|
fi;
|
|
done
|
|
fi
|
|
|
|
if test -z "$XDG_RUNTIME_DIR"; then
|
|
export XDG_RUNTIME_DIR=/run/user/`id -u ${WESTON_USER}`
|
|
if ! test -d "$XDG_RUNTIME_DIR"; then
|
|
mkdir --parents $XDG_RUNTIME_DIR
|
|
chmod 0700 $XDG_RUNTIME_DIR
|
|
fi
|
|
if [ -n "$WESTON_USER" ]
|
|
then
|
|
chown $WESTON_USER:$WESTON_GROUP $XDG_RUNTIME_DIR
|
|
fi
|
|
fi
|
|
|
|
su -c "XDG_RUNTIME_DIR=/run/user/`id -u ${WESTON_USER}` weston $weston_args --log=/tmp/weston.log" $WESTON_USER
|