bazzite/spec_files/steamdeck-gnome-presets/usr/bin/steamos-nested-desktop
2023-10-23 14:48:34 -07:00

17 lines
535 B
Bash
Executable File

#!/usr/bin/env bash
if [[ "$(inxi -Gxx | grep compositor)" =~ "gnome-shell" ]]; then
zenity --info --text "This utility is meant to be executed through Steam Game Mode only."
exit 0
fi
source /etc/default/steamos-nested-desktop
# Remove the performance overlay, it meddles with some tasks
unset LD_PRELOAD
# Start a new DBus session
eval $(dbus-launch --sh-syntax)
env MUTTER_DEBUG_DUMMY_MODE_SPECS=${STEAMOS_NESTED_DESKTOP_WIDTH:-1280}x${STEAMOS_NESTED_DESKTOP_HEIGHT:-800} \
dbus-run-session -- gnome-shell --nested --wayland