#!/bin/sh
set -e

if [ -n ${WAYLAND_DISPLAY+x} ]; then
    # Allow Calamares to run as root via Xwayland.
    # The full Wayland version crashes at start in Qt.
    xhost si:localuser:root
fi

pkexec /usr/bin/calamares $@
