distribution/packages/jelos/autostart/010-uimode
fewtarius 165f994bc1
* Rework profile bits so they are correctly named and sequenced.
* Drop deprecated device.config from AMD64.
* Add a platform quirk for AMD64.x
2023-09-04 10:46:11 +00:00

26 lines
736 B
Bash
Executable file

#!/bin/sh
# SPDX-License-Identifier: Apache-2.0
# Copyright (C) 2022-present Fewtarius (https://github.com/fewtarius)
# Minimal OS variable loading for performance
. /etc/profile.d/001-functions
tocon "Configuring user interface..."
UIMODE=$(get_setting desktop.enabled)
if [ "${UIMODE}" = "1" ] || \
[ ! -e "/usr/bin/emulationstation" ]
then
cp -f /usr/share/weston/weston.ini /storage/.config/weston.ini
else
cp -f /usr/share/weston/kiosk.ini /storage/.config/weston.ini
fi
STARTUP=$(get_setting weston.startup)
if [ -z "${STARTUP}" ] && \
[ -e "/usr/bin/emulationstation" ]
then
STARTUP="/usr/bin/start_es.sh"
set_setting weston.startup "${STARTUP}"
fi
sed -i "s#@STARTUP@#${STARTUP}#g" /storage/.config/weston.ini