distribution/packages/jelos/autostart/010-uimode
fewtarius fb954b97fa
x55, ES, UI Updates
* Set correct rotation when connected to HDMI on Powkiddy x55.
* Deprecate EmulationStation splash screen.
* Fix bug setting 16:10 aspect ratio - move redundant script bits to a global function.
* Experiment with ES defaults.
2023-07-22 23:56:23 +00:00

25 lines
676 B
Bash
Executable file

#!/bin/bash
# SPDX-License-Identifier: Apache-2.0
# Copyright (C) 2022-present Fewtarius (https://github.com/fewtarius)
. /etc/profile
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