fix(gnome): Launch nested session in Xephyr, this fixes most everything but flatpak firefox.

This commit is contained in:
Kyle Gospodnetich 2023-10-31 16:17:26 -07:00
parent e1f1252e9f
commit 7e25957a31
2 changed files with 6 additions and 9 deletions

View File

@ -11,8 +11,7 @@ BuildArch: noarch
Requires: steamdeck-backgrounds
Requires: dbus-x11
Requires: zenity
Requires: inxi
Requires: xorg-x11-server-Xephyr
Requires: nautilus-python
Conflicts: steamdeck-kde-presets

View File

@ -1,13 +1,11 @@
#!/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
env MUTTER_DEBUG_DUMMY_MODE_SPECS=${STEAMOS_NESTED_DESKTOP_WIDTH:-1280}x${STEAMOS_NESTED_DESKTOP_HEIGHT:-800} \
dbus-run-session -- gnome-shell --nested --wayland
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