I need help with a script to launch a Cinnamon GUI

In a proot chroot of Fedora 40 in a Termux host with aarch64 architecture, I am endeavouring to launch a GUI desktop spin of Cinnamon with the following script:

#!/usr/bin/bash

# Check if the D-Bus system bus PID file exists and remove it
if [ -e /run/dbus/pid ]; then
    rm /run/dbus/pid
fi

# Define the display resolution for Samsung Galaxy S9 Ultra
export DISPLAY=:0
export SCREEN_WIDTH=2960
export SCREEN_HEIGHT=1848
export SCREEN_DEPTH=24
export GEOMETRY="${SCREEN_WIDTH}x${SCREEN_HEIGHT}x${SCREEN_DEPTH}"

# Set the XDG_RUNTIME_DIR environment variable
export XDG_RUNTIME_DIR=/tmp/runtime-root

# Ensure the directory exists and set the correct permissions
mkdir -p "$XDG_RUNTIME_DIR"
chmod 0700 "$XDG_RUNTIME_DIR"

# Ensure the D-Bus system bus socket directory exists
mkdir -p /run/dbus

# Set the correct permissions for the D-Bus system bus socket directory
chmod 755 /run/dbus

# Start the D-Bus system bus daemon
dbus-daemon --system

# Export the DBUS_SESSION_BUS_ADDRESS environment variable
export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/dbus/system_bus_socket

# Start the dbus session daemon
dbus-daemon --session --fork

# Configure weston to use the X11 backend with software rendering and log to a file for debugging
weston --backend=x11 --use-pixman --log=/tmp/weston.log --width=$SCREEN_WIDTH --height=$SCREEN_HEIGHT &

# Wait for weston to start
sleep 5

# Check if weston started successfully
if pgrep -x "weston" > /dev/null
then
    echo "Weston started successfully."
else
    echo "Failed to start weston. Check /tmp/weston.log for errors."
    exit 1
fi

# Launch the Cinnamon session
exec cinnamon-session

I have these error logs:

(base) root@localhost:~# cat /tmp/weston.log
Date: 2024-05-08 UTC
[20:22:15.293] weston 13.0.0
               https://wayland.freedesktop.org
               Bug reports to: https://gitlab.freedesktop.org/wayland/weston/issues/
               Build: 13.0.0
[20:22:15.293] Command line: weston --backend=x11 --use-pixman --log=/tmp/weston.log --width=2960 --height=1848
[20:22:15.294] OS: Linux, 5.15.94-android13-8-27940245-abX910XXU1BWL1, #1 SMP PREEMPT Mon Dec 4 10:05:43 UTC 2023, aarch64
[20:22:15.294] Flight recorder: enabled
[20:22:15.296] Using config file '/root/.config/weston.ini'
[20:22:15.298] Output repaint window is 7 ms maximum.
[20:22:15.299] Loading module '/usr/lib64/libweston-13/x11-backend.so'
[20:22:15.319] fatal: failed to create compositor backend
Date: 2024-05-08 UTC
[20:27:49.251] weston 13.0.0
               https://wayland.freedesktop.org
               Bug reports to: https://gitlab.freedesktop.org/wayland/weston/issues/
               Build: 13.0.0
[20:27:49.252] Command line: weston --backend=x11 --use-pixman --log=/tmp/weston.log --width=2960 --height=1848
[20:27:49.252] OS: Linux, 5.15.94-android13-8-27940245-abX910XXU1BWL1, #1 SMP PREEMPT Mon Dec 4 10:05:43 UTC 2023, aarch64
[20:27:49.252] Flight recorder: enabled
[20:27:49.253] Using config file '/root/.config/weston.ini'
[20:27:49.254] Output repaint window is 7 ms maximum.
[20:27:49.255] Loading module '/usr/lib64/libweston-13/x11-backend.so'
[20:27:49.261] fatal: failed to create compositor backend

The following is the weston config:

(base) root@localhost:~/.config# cat weston.ini
[core]
modules=xwayland.so
backend=x11

Any help getting this script working, is greatly appreciated.

Cheers

Added weston