#!/usr/bin/env bash
source /etc/default/steamos-nested-desktop

# Remove the performance overlay, it meddles with some tasks
unset LD_PRELOAD

Xephyr -ac -screen ${STEAMOS_NESTED_DESKTOP_WIDTH:-1280}x${STEAMOS_NESTED_DESKTOP_HEIGHT:-800} -reset :5 &
env DISPLAY=:5 \
	MUTTER_DEBUG_DUMMY_MODE_SPECS=${STEAMOS_NESTED_DESKTOP_WIDTH:-1280}x${STEAMOS_NESTED_DESKTOP_HEIGHT:-800} \
	dbus-run-session -- gnome-shell --nested \
									--wayland
